dependencies {
- testCompile 'com.tngtech.archunit:archunit-junit4:0.12.0'
+ testCompile 'com.tngtech.archunit:archunit-junit4:0.13.0'
}
diff --git a/README.md b/README.md
index ccca0e5b80..183a884c7e 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ framework.
###### Gradle
```
-testCompile 'com.tngtech.archunit:archunit:0.12.0'
+testCompile 'com.tngtech.archunit:archunit:0.13.0'
```
###### Maven
@@ -26,7 +26,7 @@ testCompile 'com.tngtech.archunit:archunit:0.12.0'
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit4</artifactId>
- <version>0.12.0</version>
+ <version>0.13.0</version>
<scope>test</scope>
</dependency>
@@ -620,7 +620,7 @@ dependencies {
- testCompile 'com.tngtech.archunit:archunit-junit4:0.12.0'
+ testCompile 'com.tngtech.archunit:archunit-junit4:0.13.0'
}
dependencies {
...
- testCompile 'com.tngtech.archunit:archunit-junit5-api:0.12.0'
- testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.12.0'
+ testCompile 'com.tngtech.archunit:archunit-junit5:0.13.0'
}
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
- <version>0.12.0</version>
+ <version>0.13.0</version>
<scope>test</scope>
</dependency>
@@ -714,7 +707,7 @@ dependencies {
- testCompile 'com.tngtech.archunit:archunit:0.12.0'
+ testCompile 'com.tngtech.archunit:archunit:0.13.0'
}
JavaAnnotation> annotation = javaClass.getAnnotationOfType("some.pkg.CustomAnnotation");
+JavaAnnotation<?> annotation = javaClass.getAnnotationOfType("some.pkg.CustomAnnotation");
// result is untyped, since it might not be on the classpath (e.g. enums)
Object value = annotation.get("value");
The ViolationLineMatcher
compares lines from occurred violations with lines from the store.
-The default implementation ignores line numbers and counts lines as equivalent when all other details match.
+The default implementation ignores line numbers and numbers of anonymous classes or lambda expressions,
+and counts lines as equivalent when all other details match.
A custom ViolationLineMatcher
can again either be defined programmatically: