Skip to content

Commit

Permalink
Additional enforcer rule to verify no dependencies have a bytecode hi…
Browse files Browse the repository at this point in the history
…gher than 1.8 (#587)

Addresses issue #585
  • Loading branch information
brenuart authored Jul 31, 2021
1 parent e36e545 commit 4785be8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,35 @@
<requireMavenVersion>
<version>[3.0.4,)</version>
</requireMavenVersion>

<!-- Verify that there are no classes in dependencies having bytecode versions
higher than the minimum JDK version we support.
-->
<enforceBytecodeVersion>
<maxJdkVersion>1.8</maxJdkVersion>
</enforceBytecodeVersion>
</rules>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.3</version>
</dependency>

<!-- Explicitly set version as a workaround for issue
https://github.com/mojohaus/extra-enforcer-rules/issues/131.
Can be removed once extra-enforcer-rules is upgraded to a
version higher than 1.3.
-->
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-dependency-tree</artifactId>
<version>2.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down

0 comments on commit 4785be8

Please sign in to comment.