Skip to content

Commit 29aad33

Browse files
committed
init
1 parent 6c7eba4 commit 29aad33

1 file changed

Lines changed: 73 additions & 0 deletions

File tree

readme.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# ArchUnit Toolbox
2+
3+
Common ArchUnit tooling for Java / Spring Boot projects.
4+
5+
## Setup
6+
7+
Add this library to the classpath by adding the following maven dependency. Versions can be found [here](../../packages)
8+
9+
```xml
10+
11+
<dependency>
12+
<groupId>it.aboutbits</groupId>
13+
<artifactId>archunit-toolbox</artifactId>
14+
<version>x.x.x</version>
15+
<scope>test</scope>
16+
</dependency>
17+
```
18+
19+
## Usage
20+
21+
To use this package, simply extend one of the provided ArchUnit classes.
22+
For example `ArchitectureTestBase`:
23+
24+
```java
25+
26+
@AnalyzeClasses(
27+
packages = ArchitectureTest.PACKAGE
28+
)
29+
@NullMarked
30+
class ArchitectureTest extends ArchitectureTestBase {
31+
static final String PACKAGE = "the.base.package.of.your.project";
32+
33+
static {
34+
// Configuration
35+
}
36+
}
37+
```
38+
39+
In the static block you can configure some blacklists provided by the base class.
40+
41+
```java
42+
static {
43+
ArchitectureTestBase.BLACKLISTED_CLASSES.remove("net.datafaker.Faker");
44+
}
45+
```
46+
47+
## Local Development
48+
49+
To use this library as a local development dependency, you can simply refer to the version `BUILD-SNAPSHOT`.
50+
51+
Check out this repository and run the maven goal `install`. This will build and install this library as version `BUILD-SNAPSHOT` into your local maven cache.
52+
53+
Note that you may have to tell your IDE to reload your main maven project each time you build the library.
54+
55+
## Build & Publish
56+
57+
To build and publish the chart, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.
58+
59+
## Information
60+
61+
About Bits is a company based in South Tyrol, Italy. You can find more information about us on [our website](https://aboutbits.it).
62+
63+
### Support
64+
65+
For support, please contact [info@aboutbits.it](mailto:info@aboutbits.it).
66+
67+
### Credits
68+
69+
- [All Contributors](../../contributors)
70+
71+
### License
72+
73+
The MIT License (MIT). Please see the [license file](license.md) for more information.

0 commit comments

Comments
 (0)