File tree 1 file changed +11
-42
lines changed
1 file changed +11
-42
lines changed Original file line number Diff line number Diff line change @@ -546,9 +546,16 @@ limitations under the License.
546
546
<plugin >
547
547
<groupId >org.apache.maven.plugins</groupId >
548
548
<artifactId >maven-enforcer-plugin</artifactId >
549
+ <dependencies >
550
+ <dependency >
551
+ <groupId >org.codehaus.mojo</groupId >
552
+ <artifactId >extra-enforcer-rules</artifactId >
553
+ <version >1.6.2</version >
554
+ </dependency >
555
+ </dependencies >
549
556
<executions >
550
557
<execution >
551
- <id >enforce-maven</id >
558
+ <id >enforce-maven-and-java-bytecode </id >
552
559
<goals >
553
560
<goal >enforce</goal >
554
561
</goals >
@@ -558,6 +565,9 @@ limitations under the License.
558
565
<version >3.2.5</version >
559
566
<message >This project requires at least Maven 3.2.5</message >
560
567
</requireMavenVersion >
568
+ <enforceBytecodeVersion >
569
+ <maxJdkVersion >${maven.compiler.target} </maxJdkVersion >
570
+ </enforceBytecodeVersion >
561
571
</rules >
562
572
</configuration >
563
573
</execution >
@@ -744,46 +754,5 @@ limitations under the License.
744
754
</plugins >
745
755
</build >
746
756
</profile >
747
- <profile >
748
- <id >pre-JEP_247</id >
749
- <activation >
750
- <jdk >[7,8]</jdk >
751
- </activation >
752
- <build >
753
- <plugins >
754
- <plugin >
755
- <groupId >org.apache.maven.plugins</groupId >
756
- <artifactId >maven-enforcer-plugin</artifactId >
757
- <dependencies >
758
- <dependency >
759
- <groupId >org.codehaus.mojo</groupId >
760
- <artifactId >animal-sniffer-enforcer-rule</artifactId >
761
- <version >1.23</version >
762
- </dependency >
763
- </dependencies >
764
- <executions >
765
- <execution >
766
- <id >check-signatures</id >
767
- <phase >test</phase >
768
- <goals >
769
- <goal >enforce</goal >
770
- </goals >
771
- <configuration >
772
- <rules >
773
- <checkSignatureRule implementation =" org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule" >
774
- <signature >
775
- <groupId >org.codehaus.mojo.signature</groupId >
776
- <artifactId >java1${javaVersion}</artifactId >
777
- <version >1.0</version >
778
- </signature >
779
- </checkSignatureRule >
780
- </rules >
781
- </configuration >
782
- </execution >
783
- </executions >
784
- </plugin >
785
- </plugins >
786
- </build >
787
- </profile >
788
757
</profiles >
789
758
</project >
You can’t perform that action at this time.
0 commit comments