Skip to content

Commit f19f845

Browse files
committed
updated version in pom and README
1 parent 0014361 commit f19f845

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Usage: Add the following plugin to your POM:
1212
<dependency>
1313
<groupId>de.andrena.tools.nopackagecycles</groupId>
1414
<artifactId>no-package-cycles-enforcer-rule</artifactId>
15-
<version>1.0.6</version>
15+
<version>1.0.7</version>
1616
</dependency>
1717
</dependencies>
1818
<executions>
@@ -32,6 +32,19 @@ Usage: Add the following plugin to your POM:
3232
</plugin>
3333
```
3434

35+
If you want to exclude tests from cycle checking you can use the parameter `includeTests` which is set to true by default:
36+
```
37+
...
38+
<rules>
39+
<NoPackageCyclesRule implementation="de.andrena.tools.nopackagecycles.NoPackageCyclesRule">
40+
<includeTests>false</includeTests>
41+
</NoPackageCyclesRule>
42+
</rules>
43+
...
44+
45+
```
46+
47+
3548
See also:
3649
* The original version by Daniel Seidewitz on [Stackoverflow](http://stackoverflow.com/questions/3416547/maven-jdepend-fail-build-with-cycles). Improved by showing all packages afflicted with cycles and the corresponding classes importing the conflicting packages.
3750
* [JDepend](https://github.com/clarkware/jdepend), the library being used to detect package cycles.

pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<dependency>
8686
<groupId>de.andrena.tools.nopackagecycles</groupId>
8787
<artifactId>no-package-cycles-enforcer-rule</artifactId>
88-
<version>1.0.6</version>
88+
<version>1.0.7</version>
8989
</dependency>
9090
</dependencies>
9191
<executions>
@@ -97,7 +97,9 @@
9797
<phase>compile</phase>
9898
<configuration>
9999
<rules>
100-
<NoPackageCyclesRule implementation="de.andrena.tools.nopackagecycles.NoPackageCyclesRule" />
100+
<NoPackageCyclesRule implementation="de.andrena.tools.nopackagecycles.NoPackageCyclesRule">
101+
<includeTests>false</includeTests>
102+
</NoPackageCyclesRule>
101103
</rules>
102104
</configuration>
103105
</execution>

0 commit comments

Comments
 (0)