File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments