Skip to content

Commit fcc7c8a

Browse files
authored
build: Replace Maven Enforcer byte code rule with extra-enforcer-rules (#8006)
Signed-off-by: Chad Wilson <[email protected]>
1 parent edd1491 commit fcc7c8a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pom.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,9 @@ Copyright (c) 2012 - Jeremy Long
520520
<artifactId>maven-enforcer-plugin</artifactId>
521521
<dependencies>
522522
<dependency>
523-
<groupId>org.owasp.maven.enforcer</groupId>
524-
<artifactId>class-file-format-rule</artifactId>
525-
<version>2.0.0</version>
523+
<groupId>org.codehaus.mojo</groupId>
524+
<artifactId>extra-enforcer-rules</artifactId>
525+
<version>1.11.0</version>
526526
</dependency>
527527
</dependencies>
528528
<inherited>true</inherited>
@@ -535,23 +535,23 @@ Copyright (c) 2012 - Jeremy Long
535535
<configuration>
536536
<rules>
537537
<requireJavaVersion>
538-
<version>1.8.0</version>
538+
<version>${maven.compiler.release}</version>
539539
</requireJavaVersion>
540540
</rules>
541541
</configuration>
542542
</execution>
543543
<execution>
544-
<id>enforce-classfileformat</id>
544+
<id>enforce-bytecode-version</id>
545+
<goals>
546+
<goal>enforce</goal>
547+
</goals>
545548
<configuration>
546549
<rules>
547-
<byteCodeRule implementation="org.owasp.maven.enforcer.rule.ClassFileFormatRule">
548-
<supportedClassFileFormat>55</supportedClassFileFormat>
549-
</byteCodeRule>
550+
<enforceBytecodeVersion>
551+
<maxJdkVersion>${maven.compiler.release}</maxJdkVersion>
552+
</enforceBytecodeVersion>
550553
</rules>
551554
</configuration>
552-
<goals>
553-
<goal>enforce</goal>
554-
</goals>
555555
</execution>
556556
<execution>
557557
<id>enforce-maven-3</id>

0 commit comments

Comments
 (0)