File tree 1 file changed +27
-41
lines changed
1 file changed +27
-41
lines changed Original file line number Diff line number Diff line change @@ -572,6 +572,33 @@ limitations under the License.
572
572
</execution >
573
573
</executions >
574
574
</plugin >
575
+ <plugin >
576
+ <groupId >org.apache.maven.plugins</groupId >
577
+ <artifactId >maven-enforcer-plugin</artifactId >
578
+ <dependencies >
579
+ <dependency >
580
+ <groupId >org.codehaus.mojo</groupId >
581
+ <artifactId >extra-enforcer-rules</artifactId >
582
+ <version >1.6.2</version >
583
+ </dependency >
584
+ </dependencies >
585
+ <executions >
586
+ <execution >
587
+ <id >enforce-bytecode-version</id >
588
+ <goals >
589
+ <goal >enforce</goal >
590
+ </goals >
591
+ <configuration >
592
+ <rules >
593
+ <enforceBytecodeVersion >
594
+ <maxJdkVersion >${maven.compiler.target} </maxJdkVersion >
595
+ </enforceBytecodeVersion >
596
+ </rules >
597
+ <fail >true</fail >
598
+ </configuration >
599
+ </execution >
600
+ </executions >
601
+ </plugin >
575
602
</plugins >
576
603
</build >
577
604
@@ -742,46 +769,5 @@ limitations under the License.
742
769
</plugins >
743
770
</build >
744
771
</profile >
745
- <profile >
746
- <id >pre-JEP_247</id >
747
- <activation >
748
- <jdk >[7,8]</jdk >
749
- </activation >
750
- <build >
751
- <plugins >
752
- <plugin >
753
- <groupId >org.apache.maven.plugins</groupId >
754
- <artifactId >maven-enforcer-plugin</artifactId >
755
- <dependencies >
756
- <dependency >
757
- <groupId >org.codehaus.mojo</groupId >
758
- <artifactId >animal-sniffer-enforcer-rule</artifactId >
759
- <version >1.23</version >
760
- </dependency >
761
- </dependencies >
762
- <executions >
763
- <execution >
764
- <id >check-signatures</id >
765
- <phase >test</phase >
766
- <goals >
767
- <goal >enforce</goal >
768
- </goals >
769
- <configuration >
770
- <rules >
771
- <checkSignatureRule implementation =" org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule" >
772
- <signature >
773
- <groupId >org.codehaus.mojo.signature</groupId >
774
- <artifactId >java1${javaVersion}</artifactId >
775
- <version >1.0</version >
776
- </signature >
777
- </checkSignatureRule >
778
- </rules >
779
- </configuration >
780
- </execution >
781
- </executions >
782
- </plugin >
783
- </plugins >
784
- </build >
785
- </profile >
786
772
</profiles >
787
773
</project >
You can’t perform that action at this time.
0 commit comments