Skip to content

Commit 15520c7

Browse files
committed
Check dependencies' bytecode compatibility
1 parent 9ba1ebc commit 15520c7

File tree

1 file changed

+31
-8
lines changed

1 file changed

+31
-8
lines changed

pom.xml

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,37 @@
277277
</extraArtifacts>
278278
</configuration>
279279
</plugin>
280+
<plugin>
281+
<groupId>org.apache.maven.plugins</groupId>
282+
<artifactId>maven-enforcer-plugin</artifactId>
283+
<version>3.4.1</version>
284+
<executions>
285+
<execution>
286+
<goals>
287+
<goal>enforce</goal>
288+
</goals>
289+
</execution>
290+
</executions>
291+
<configuration>
292+
<rules>
293+
<enforceBytecodeVersion>
294+
<maxJdkVersion>${targetJdk}</maxJdkVersion>
295+
<ignoredScopes>
296+
<scope>provided</scope>
297+
<scope>test</scope>
298+
</ignoredScopes>
299+
<ignoreOptionals />
300+
</enforceBytecodeVersion>
301+
</rules>
302+
</configuration>
303+
<dependencies>
304+
<dependency>
305+
<groupId>org.codehaus.mojo</groupId>
306+
<artifactId>extra-enforcer-rules</artifactId>
307+
<version>1.7.0</version>
308+
</dependency>
309+
</dependencies>
310+
</plugin>
280311
<plugin>
281312
<groupId>org.apache.maven.plugins</groupId>
282313
<artifactId>maven-site-plugin</artifactId>
@@ -376,14 +407,6 @@
376407
<plugin>
377408
<groupId>org.apache.maven.plugins</groupId>
378409
<artifactId>maven-enforcer-plugin</artifactId>
379-
<version>3.3.0</version>
380-
<executions>
381-
<execution>
382-
<goals>
383-
<goal>enforce</goal>
384-
</goals>
385-
</execution>
386-
</executions>
387410
<configuration>
388411
<rules>
389412
<requireJavaVersion>

0 commit comments

Comments
 (0)