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
520
520
<artifactId >maven-enforcer-plugin</artifactId >
521
521
<dependencies >
522
522
<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 >
526
526
</dependency >
527
527
</dependencies >
528
528
<inherited >true</inherited >
@@ -535,23 +535,23 @@ Copyright (c) 2012 - Jeremy Long
535
535
<configuration >
536
536
<rules >
537
537
<requireJavaVersion >
538
- <version >1.8.0 </version >
538
+ <version >${maven.compiler.release} </version >
539
539
</requireJavaVersion >
540
540
</rules >
541
541
</configuration >
542
542
</execution >
543
543
<execution >
544
- <id >enforce-classfileformat</id >
544
+ <id >enforce-bytecode-version</id >
545
+ <goals >
546
+ <goal >enforce</goal >
547
+ </goals >
545
548
<configuration >
546
549
<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 >
550
553
</rules >
551
554
</configuration >
552
- <goals >
553
- <goal >enforce</goal >
554
- </goals >
555
555
</execution >
556
556
<execution >
557
557
<id >enforce-maven-3</id >
You can’t perform that action at this time.
0 commit comments