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