Skip to content

Commit 6c83903

Browse files
committed
Sync enforcer configuration setup with ASF
1 parent 9633056 commit 6c83903

File tree

1 file changed

+27
-41
lines changed

1 file changed

+27
-41
lines changed

pom.xml

+27-41
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,33 @@ limitations under the License.
572572
</execution>
573573
</executions>
574574
</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>
575602
</plugins>
576603
</build>
577604

@@ -742,46 +769,5 @@ limitations under the License.
742769
</plugins>
743770
</build>
744771
</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>
786772
</profiles>
787773
</project>

0 commit comments

Comments
 (0)