From c5caa020d13d21c61669bb1cae1a1223e4ce6f3c Mon Sep 17 00:00:00 2001 From: hankem Date: Mon, 10 Feb 2025 20:27:24 +0000 Subject: [PATCH] prepare release 1.4.0 Signed-off-by: hankem --- README.md | 4 +- docs/_data/navigation.yml | 2 +- docs/_pages/getting-started.md | 4 +- .../_posts/2025-02-10-release-v1.4.0.markdown | 8 ++++ docs/userguide/html/000_Index.html | 47 +++++++++++++++---- gradle.properties | 2 +- 6 files changed, 52 insertions(+), 15 deletions(-) create mode 100644 docs/_posts/2025-02-10-release-v1.4.0.markdown diff --git a/README.md b/README.md index cb9029589..03c739327 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ framework. ###### Gradle ``` -testImplementation 'com.tngtech.archunit:archunit:1.3.0' +testImplementation 'com.tngtech.archunit:archunit:1.4.0' ``` ###### Maven @@ -26,7 +26,7 @@ testImplementation 'com.tngtech.archunit:archunit:1.3.0' com.tngtech.archunit archunit - 1.3.0 + 1.4.0 test ``` diff --git a/docs/_data/navigation.yml b/docs/_data/navigation.yml index 1075141df..e21a94ac5 100644 --- a/docs/_data/navigation.yml +++ b/docs/_data/navigation.yml @@ -10,6 +10,6 @@ main: - title: "User Guide" url: /userguide/html/000_Index.html - title: "API" - url: https://javadoc.io/doc/com.tngtech.archunit/archunit/1.3.0 + url: https://javadoc.io/doc/com.tngtech.archunit/archunit/1.4.0 - title: "About" url: /about diff --git a/docs/_pages/getting-started.md b/docs/_pages/getting-started.md index 2107f8219..8034a123c 100644 --- a/docs/_pages/getting-started.md +++ b/docs/_pages/getting-started.md @@ -15,7 +15,7 @@ ArchUnit can be obtained from Maven Central. com.tngtech.archunit archunit - 1.3.0 + 1.4.0 test ``` @@ -23,7 +23,7 @@ ArchUnit can be obtained from Maven Central. #### Gradle ```groovy dependencies { - testImplementation 'com.tngtech.archunit:archunit:1.3.0' + testImplementation 'com.tngtech.archunit:archunit:1.4.0' } ``` diff --git a/docs/_posts/2025-02-10-release-v1.4.0.markdown b/docs/_posts/2025-02-10-release-v1.4.0.markdown new file mode 100644 index 000000000..6a2aa9680 --- /dev/null +++ b/docs/_posts/2025-02-10-release-v1.4.0.markdown @@ -0,0 +1,8 @@ +--- +layout: splash +title: "New release of ArchUnit (v1.4.0)" +date: 2025-02-10 12:00:00 +categories: news release +--- + +A new release of ArchUnit (v1.4.0) is out. For details see [the release on GitHub](https://github.com/TNG/ArchUnit/releases/tag/v1.4.0 "ArchUnit v1.4.0 on GitHub"). diff --git a/docs/userguide/html/000_Index.html b/docs/userguide/html/000_Index.html index 0002281ee..5c25e025e 100644 --- a/docs/userguide/html/000_Index.html +++ b/docs/userguide/html/000_Index.html @@ -1,5 +1,5 @@ - + @@ -450,7 +450,7 @@ @@ -649,7 +649,7 @@

2.2. JUnit 5

<dependency>
     <groupId>com.tngtech.archunit</groupId>
     <artifactId>archunit-junit5</artifactId>
-    <version>1.3.0</version>
+    <version>1.4.0</version>
     <scope>test</scope>
 </dependency>
@@ -658,7 +658,7 @@

2.2. JUnit 5

build.gradle
dependencies {
-    testImplementation 'com.tngtech.archunit:archunit-junit5:1.3.0'
+    testImplementation 'com.tngtech.archunit:archunit-junit5:1.4.0'
 }
@@ -675,7 +675,7 @@

<dependency> <groupId>com.tngtech.archunit</groupId> <artifactId>archunit</artifactId> - <version>1.3.0</version> + <version>1.4.0</version> <scope>test</scope> </dependency> @@ -684,7 +684,7 @@

build.gradle
dependencies {
-   testImplementation 'com.tngtech.archunit:archunit:1.3.0'
+   testImplementation 'com.tngtech.archunit:archunit:1.4.0'
 }
@@ -2658,7 +2658,7 @@

9.1.1. Writ

9.1.2. Controlling the Import

Which classes will be imported can be controlled in a declarative way through @AnalyzeClasses. -If no packages or locations are provided, the whole classpath will be imported. +If no packages or locations are provided, the package of the annotated test class will be imported. You can specify packages to import as strings:

@@ -2705,6 +2705,35 @@

The Core API, you can write your own custom implementation of ImportOption and then supply the type to @AnalyzeClasses.

+
+

To import the whole classpath, instead of just the package of the test class, use the option

+
+
+
+
@AnalyzeClasses(wholeClasspath = true)
+
+
+
+

Note that @AnalyzeClasses can also be used as a meta-annotation to avoid repeating the same configuration:

+
+
+
+
@Retention(RetentionPolicy.RUNTIME)
+@AnalyzeClasses(packagesOf = MyApplicationRoot.class, importOptions = DoNotIncludeTests.class)
+public @interface AnalyzeMainClasses {}
+
+
+
+

This annotation can then be used on test classes without repeating the specific configuration of @AnalyzeClasses:

+
+
+
+
@AnalyzeMainClasses
+public class ArchitectureTest {
+    // ...
+}
+
+

9.1.3. Controlling the Cache

diff --git a/gradle.properties b/gradle.properties index 17396b99c..b02b70663 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ org.gradle.parallel=true archunit.group=com.tngtech.archunit -archunit.version=1.4.0-SNAPSHOT +archunit.version=1.4.0 org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED