File tree 1 file changed +17
-18
lines changed
1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change 409
409
<artifactId >maven-enforcer-plugin</artifactId >
410
410
<executions >
411
411
<execution >
412
- <id >enforce-maven </id >
412
+ <id >enforces </id >
413
413
<goals >
414
414
<goal >enforce</goal >
415
415
</goals >
830
830
</build >
831
831
</profile >
832
832
<profile >
833
- <id >force-jdk11 -when-release</id >
833
+ <id >enforce -when-release</id >
834
834
<activation >
835
835
<property >
836
836
<name >performRelease</name >
839
839
</activation >
840
840
<build >
841
841
<plugins >
842
- <!--
843
- add maven-enforcer-plugin to make sure the right jdk is used
844
- https://stackoverflow.com/a/18420462/922688
845
- -->
846
842
<plugin >
847
843
<artifactId >maven-enforcer-plugin</artifactId >
848
844
<executions >
849
845
<execution >
850
- <id >enforce-jdk-versions </id >
846
+ <id >enforces </id >
851
847
<goals >
852
848
<goal >enforce</goal >
853
849
</goals >
854
850
<configuration >
855
851
<rules >
852
+ <!--
853
+ add maven-enforcer-plugin to make sure the right jdk is used
854
+ https://stackoverflow.com/a/18420462/922688
855
+ -->
856
856
<requireJavaVersion >
857
857
<version >17</version >
858
858
</requireJavaVersion >
859
- </rules >
860
- </configuration >
861
- </execution >
862
- <execution >
863
- <id >enforce-property</id >
864
- <goals >
865
- <goal >enforce</goal >
866
- </goals >
867
- <configuration >
868
- <rules >
869
859
<!-- https://maven.apache.org/enforcer/enforcer-rules/requireProperty.html -->
870
860
<requireProperty >
871
861
<property >project.version</property >
872
862
<regex >^\d\.\d+\.\d+(-(Alpha|Beta|RC)\d+)?$|^\d(\.\d+)?\.(\d+|x)-SNAPSHOT$</regex >
873
863
<regexMessage >"Project version(${project.version} ) format is invalid!"</regexMessage >
874
864
</requireProperty >
865
+ <enforceBytecodeVersion >
866
+ <maxJdkVersion >${maven.compiler.source} </maxJdkVersion >
867
+ </enforceBytecodeVersion >
875
868
</rules >
876
- <fail >true</fail >
877
869
</configuration >
878
870
</execution >
879
871
</executions >
872
+ <dependencies >
873
+ <dependency >
874
+ <groupId >org.codehaus.mojo</groupId >
875
+ <artifactId >extra-enforcer-rules</artifactId >
876
+ <version >1.7.0</version >
877
+ </dependency >
878
+ </dependencies >
880
879
</plugin >
881
880
</plugins >
882
881
</build >
You can’t perform that action at this time.
0 commit comments