Skip to content

Commit 4830df0

Browse files
committed
Sync enforcer configuration setup with ASF
1 parent f98b660 commit 4830df0

File tree

1 file changed

+11
-42
lines changed

1 file changed

+11
-42
lines changed

pom.xml

+11-42
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,16 @@ limitations under the License.
546546
<plugin>
547547
<groupId>org.apache.maven.plugins</groupId>
548548
<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>
549556
<executions>
550557
<execution>
551-
<id>enforce-maven</id>
558+
<id>enforce-maven-and-java-bytecode</id>
552559
<goals>
553560
<goal>enforce</goal>
554561
</goals>
@@ -558,6 +565,9 @@ limitations under the License.
558565
<version>3.2.5</version>
559566
<message>This project requires at least Maven 3.2.5</message>
560567
</requireMavenVersion>
568+
<enforceBytecodeVersion>
569+
<maxJdkVersion>${maven.compiler.target}</maxJdkVersion>
570+
</enforceBytecodeVersion>
561571
</rules>
562572
</configuration>
563573
</execution>
@@ -744,46 +754,5 @@ limitations under the License.
744754
</plugins>
745755
</build>
746756
</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>
788757
</profiles>
789758
</project>

0 commit comments

Comments
 (0)