diff --git a/README.md b/README.md index 222fc16418..3ae92386cc 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ framework. ###### Gradle ``` -testCompile 'com.tngtech.archunit:archunit:0.10.0' +testCompile 'com.tngtech.archunit:archunit:0.10.1' ``` ###### Maven @@ -26,7 +26,7 @@ testCompile 'com.tngtech.archunit:archunit:0.10.0' com.tngtech.archunit archunit - 0.10.0 + 0.10.1 test ``` diff --git a/build.gradle b/build.gradle index 9035190b81..1583f036e7 100644 --- a/build.gradle +++ b/build.gradle @@ -112,7 +112,7 @@ wrapper { allprojects { group = 'com.tngtech.archunit' - version = '0.10.1-SNAPSHOT' + version = '0.10.1' repositories { mavenCentral() diff --git a/docs/_data/navigation.yml b/docs/_data/navigation.yml index b6aa9a9d5c..434d1bd8ea 100644 --- a/docs/_data/navigation.yml +++ b/docs/_data/navigation.yml @@ -8,7 +8,7 @@ main: - title: "User Guide" url: /userguide/html/000_Index.html - title: "API" - url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.10.0 + url: https://javadoc.io/doc/com.tngtech.archunit/archunit/0.10.1 - title: "About" url: /about diff --git a/docs/_pages/getting-started.md b/docs/_pages/getting-started.md index b98a92a61d..f50dbd6a77 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 - 0.10.0 + 0.10.1 test ``` @@ -23,7 +23,7 @@ ArchUnit can be obtained from Maven Central. #### Gradle ```groovy dependencies { - testCompile 'com.tngtech.archunit:archunit:0.10.0' + testCompile 'com.tngtech.archunit:archunit:0.10.1' } ``` diff --git a/docs/_posts/2019-03-16-release-v0.10.1.markdown b/docs/_posts/2019-03-16-release-v0.10.1.markdown new file mode 100644 index 0000000000..2aa82529b4 --- /dev/null +++ b/docs/_posts/2019-03-16-release-v0.10.1.markdown @@ -0,0 +1,8 @@ +--- +layout: splash +title: "New release of ArchUnit (v0.10.1)" +date: 2019-03-16 12:00:00 +categories: news release +--- + +A new release of ArchUnit (v0.10.1) is out. For details see [the release on GitHub](https://github.com/TNG/ArchUnit/releases/tag/v0.10.1 "ArchUnit v0.10.1 on GitHub"). \ No newline at end of file diff --git a/docs/userguide/000_Index.adoc b/docs/userguide/000_Index.adoc index 0ef75f4f57..b9f6528bd6 100644 --- a/docs/userguide/000_Index.adoc +++ b/docs/userguide/000_Index.adoc @@ -7,7 +7,7 @@ ifndef::env-site[:toc: left] :page-layout: splash :page-description: {description} :page-keywords: {keywords} -:version: 0.10.0 +:version: 0.10.1 :icons: font :source-highlighter: coderay :prewrap!: diff --git a/docs/userguide/002_Installation.adoc b/docs/userguide/002_Installation.adoc index f3b64b4acb..81a7b1dcf0 100644 --- a/docs/userguide/002_Installation.adoc +++ b/docs/userguide/002_Installation.adoc @@ -17,7 +17,7 @@ Maven Central: com.tngtech.archunit archunit-junit4 - 0.10.0 + 0.10.1 test ---- @@ -26,7 +26,7 @@ Maven Central: .build.gradle ---- dependencies { - testCompile 'com.tngtech.archunit:archunit-junit4:0.10.0' + testCompile 'com.tngtech.archunit:archunit-junit4:0.10.1' } ---- @@ -56,13 +56,13 @@ A typical Maven configuration could look like this: com.tngtech.archunit archunit-junit5-api - 0.10.0 + 0.10.1 test com.tngtech.archunit archunit-junit5-engine - 0.10.0 + 0.10.1 test @@ -80,8 +80,8 @@ The configuration for Gradle allows to clearly distinguish a test runtime scope: ---- dependencies { ... - testCompile 'com.tngtech.archunit:archunit-junit5-api:0.10.0' - testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.10.0' + testCompile 'com.tngtech.archunit:archunit-junit5-api:0.10.1' + testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.10.1' } ---- @@ -96,7 +96,7 @@ context, include the core ArchUnit dependency from Maven Central: com.tngtech.archunit archunit - 0.10.0 + 0.10.1 test ---- @@ -105,7 +105,7 @@ context, include the core ArchUnit dependency from Maven Central: .build.gradle ---- dependencies { - testCompile 'com.tngtech.archunit:archunit:0.10.0' + testCompile 'com.tngtech.archunit:archunit:0.10.1' } ---- diff --git a/docs/userguide/html/000_Index.html b/docs/userguide/html/000_Index.html index 187f63291f..12cf53c6a9 100644 --- a/docs/userguide/html/000_Index.html +++ b/docs/userguide/html/000_Index.html @@ -609,7 +609,7 @@

2.1. JUnit 4

<dependency>
     <groupId>com.tngtech.archunit</groupId>
     <artifactId>archunit-junit4</artifactId>
-    <version>0.10.0</version>
+    <version>0.10.1</version>
     <scope>test</scope>
 </dependency>
@@ -618,7 +618,7 @@

2.1. JUnit 4

build.gradle
dependencies {
-    testCompile 'com.tngtech.archunit:archunit-junit4:0.10.0'
+    testCompile 'com.tngtech.archunit:archunit-junit4:0.10.1'
 }
@@ -650,13 +650,13 @@

2.2. JUnit 5

<dependency> <groupId>com.tngtech.archunit</groupId> <artifactId>archunit-junit5-api</artifactId> - <version>0.10.0</version> + <version>0.10.1</version> <scope>test</scope> </dependency> <dependency> <groupId>com.tngtech.archunit</groupId> <artifactId>archunit-junit5-engine</artifactId> - <version>0.10.0</version> + <version>0.10.1</version> <scope>test</scope> </dependency> </dependencies> @@ -685,8 +685,8 @@

2.2. JUnit 5

dependencies {
     ...
-    testCompile 'com.tngtech.archunit:archunit-junit5-api:0.10.0'
-    testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.10.0'
+    testCompile 'com.tngtech.archunit:archunit-junit5-api:0.10.1'
+    testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.10.1'
 }
@@ -703,7 +703,7 @@

<dependency> <groupId>com.tngtech.archunit</groupId> <artifactId>archunit</artifactId> - <version>0.10.0</version> + <version>0.10.1</version> <scope>test</scope> </dependency> @@ -712,7 +712,7 @@

build.gradle
dependencies {
-   testCompile 'com.tngtech.archunit:archunit:0.10.0'
+   testCompile 'com.tngtech.archunit:archunit:0.10.1'
 }
@@ -1625,18 +1625,21 @@

-
ClassesTransformer<JavaField> fields = new AbstractClassesTransformer<JavaField>("fields") {
+
ClassesTransformer<JavaPackage> packages = new AbstractClassesTransformer<JavaPackage>("packages") {
     @Override
-    public Iterable<JavaField> doTransform(JavaClasses classes) {
-        Set<JavaField> result = new HashSet<>();
-        for (JavaClass javaClass : classes) {
-            result.addAll(javaClass.getFields());
-        }
+    public Iterable<JavaPackage> doTransform(JavaClasses classes) {
+        Set<JavaPackage> result = new HashSet<>();
+        classes.getDefaultPackage().accept(alwaysTrue(), new PackageVisitor() {
+            @Override
+            public void visit(JavaPackage javaPackage) {
+                result.add(javaPackage);
+            }
+        });
         return result;
     }
 };
 
-all(fields).that(have(modifier(PUBLIC))).should(...)
+all(packages).that(containACoreClass()).should(...);