Skip to content

Commit 6f324d4

Browse files
committed
Add Maven Enforcer Plugin
1 parent fee56e9 commit 6f324d4

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

pom.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,37 @@
255255
</execution>
256256
</executions>
257257
</plugin>
258+
<plugin>
259+
<artifactId>maven-enforcer-plugin</artifactId>
260+
<version>1.4.1</version>
261+
<executions>
262+
<execution>
263+
<id>enforce-bytecode-version</id>
264+
<goals>
265+
<goal>enforce</goal>
266+
</goals>
267+
<configuration>
268+
<rules>
269+
<banCircularDependencies/>
270+
<enforceBytecodeVersion>
271+
<maxJdkVersion>1.8</maxJdkVersion>
272+
<ignoreClasses>
273+
<ignoreClass>module-info</ignoreClass>
274+
</ignoreClasses>
275+
</enforceBytecodeVersion>
276+
</rules>
277+
<fail>true</fail>
278+
</configuration>
279+
</execution>
280+
</executions>
281+
<dependencies>
282+
<dependency>
283+
<groupId>org.codehaus.mojo</groupId>
284+
<artifactId>extra-enforcer-rules</artifactId>
285+
<version>1.2</version>
286+
</dependency>
287+
</dependencies>
288+
</plugin>
258289
</plugins>
259290
</build>
260291
</project>

0 commit comments

Comments
 (0)