@@ -34,10 +34,11 @@ Exclude dependencies from dependency analysis
34
34
that contain annotations and the byte code analysis is unable to
35
35
determine whether a jar is actually required or not.
36
36
37
- The plugin can then be configured to ignore these dependencies in
38
- either "declared but unused" or "undeclared but used" case or in
39
- both simultaneously. See the following POM configuration for an
40
- example:
37
+ The plugin can then be configured to ignore dependencies that are
38
+ "declared but unused", "undeclared but used", and "non-test scoped"
39
+ in selected list or in all simultaneously.
40
+
41
+ See the following POM configuration for an example:
41
42
42
43
+---+
43
44
<project>
@@ -57,7 +58,7 @@ Exclude dependencies from dependency analysis
57
58
<configuration>
58
59
<failOnWarning>true</failOnWarning>
59
60
60
- <!-- ignore jsr305 for both "used but undeclared" and "declared but unused" -->
61
+ <!-- ignore jsr305 for "used but undeclared", "declared but unused", and "non-test scoped " -->
61
62
<ignoredDependencies>
62
63
<ignoredDependency>com.google.code.findbugs:jsr305</ignoredDependency>
63
64
</ignoredDependencies>
@@ -71,6 +72,11 @@ Exclude dependencies from dependency analysis
71
72
<ignoredUnusedDeclaredDependencies>
72
73
<ignoredUnusedDeclaredDependency>com.google.code.findbugs:annotations</ignoredUnusedDeclaredDependency>
73
74
</ignoredUnusedDeclaredDependencies>
75
+
76
+ <!-- ignore annotations for "non-test scoped" warnings -->
77
+ <ignoredNonTestScopedDependencies>
78
+ <ignoredNonTestScopedDependency>com.google.code.findbugs:annotations</ignoredNonTestScopedDependency>
79
+ </ignoredNonTestScopedDependencies>
74
80
</configuration>
75
81
</execution>
76
82
</executions>
0 commit comments