Skip to content

Commit 08bb7ad

Browse files
author
Ben Romberg
committed
eat your own dogfood - include package cycle rule in pom
1 parent 0f4e414 commit 08bb7ad

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

pom.xml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45

56
<parent>
@@ -111,6 +112,32 @@
111112
</includes>
112113
</configuration>
113114
</plugin>
115+
<plugin>
116+
<artifactId>maven-enforcer-plugin</artifactId>
117+
<version>1.2</version>
118+
<dependencies>
119+
<dependency>
120+
<groupId>de.andrena.tools.nopackagecycles</groupId>
121+
<artifactId>no-package-cycles-enforcer-rule</artifactId>
122+
<version>1.0.3</version>
123+
</dependency>
124+
</dependencies>
125+
<executions>
126+
<execution>
127+
<id>enforce-no-package-cycles</id>
128+
<goals>
129+
<goal>enforce</goal>
130+
</goals>
131+
<phase>compile</phase>
132+
<configuration>
133+
<rules>
134+
<NoPackageCyclesRule
135+
implementation="de.andrena.tools.nopackagecycles.NoPackageCyclesRule" />
136+
</rules>
137+
</configuration>
138+
</execution>
139+
</executions>
140+
</plugin>
114141
</plugins>
115142
</build>
116143

0 commit comments

Comments
 (0)