Skip to content

Commit c9e39f2

Browse files
committed
ensure we can build projects using java11
Signed-off-by: olivier lamy <[email protected]>
1 parent 7a89fa6 commit c9e39f2

File tree

1 file changed

+39
-26
lines changed

1 file changed

+39
-26
lines changed

pom.xml

+39-26
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ limitations under the License.
381381
<plugin>
382382
<groupId>org.apache.maven.plugins</groupId>
383383
<artifactId>maven-enforcer-plugin</artifactId>
384-
<version>1.4.1</version>
384+
<version>3.0.0-M3</version>
385385
</plugin>
386386
<plugin>
387387
<groupId>org.apache.maven.plugins</groupId>
@@ -522,13 +522,6 @@ limitations under the License.
522522
<plugin>
523523
<groupId>org.apache.maven.plugins</groupId>
524524
<artifactId>maven-enforcer-plugin</artifactId>
525-
<dependencies>
526-
<dependency>
527-
<groupId>org.codehaus.mojo</groupId>
528-
<artifactId>animal-sniffer-enforcer-rule</artifactId>
529-
<version>1.17</version>
530-
</dependency>
531-
</dependencies>
532525
<executions>
533526
<execution>
534527
<id>enforce-maven</id>
@@ -544,24 +537,6 @@ limitations under the License.
544537
</rules>
545538
</configuration>
546539
</execution>
547-
<execution>
548-
<id>check-signatures</id>
549-
<phase>test</phase>
550-
<goals>
551-
<goal>enforce</goal>
552-
</goals>
553-
<configuration>
554-
<rules>
555-
<checkSignatureRule implementation="org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule">
556-
<signature>
557-
<groupId>org.codehaus.mojo.signature</groupId>
558-
<artifactId>java1${javaVersion}</artifactId>
559-
<version>1.0</version>
560-
</signature>
561-
</checkSignatureRule>
562-
</rules>
563-
</configuration>
564-
</execution>
565540
</executions>
566541
</plugin>
567542
<plugin>
@@ -731,5 +706,43 @@ limitations under the License.
731706
</plugins>
732707
</build>
733708
</profile>
709+
<profile>
710+
<id>java7-or-archeological-build</id>
711+
<build>
712+
<plugins>
713+
<plugin>
714+
<groupId>org.apache.maven.plugins</groupId>
715+
<artifactId>maven-enforcer-plugin</artifactId>
716+
<dependencies>
717+
<dependency>
718+
<groupId>org.codehaus.mojo</groupId>
719+
<artifactId>animal-sniffer-enforcer-rule</artifactId>
720+
<version>1.18</version>
721+
</dependency>
722+
</dependencies>
723+
<executions>
724+
<execution>
725+
<id>check-signatures</id>
726+
<phase>test</phase>
727+
<goals>
728+
<goal>enforce</goal>
729+
</goals>
730+
<configuration>
731+
<rules>
732+
<checkSignatureRule implementation="org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule">
733+
<signature>
734+
<groupId>org.codehaus.mojo.signature</groupId>
735+
<artifactId>java1${javaVersion}</artifactId>
736+
<version>1.0</version>
737+
</signature>
738+
</checkSignatureRule>
739+
</rules>
740+
</configuration>
741+
</execution>
742+
</executions>
743+
</plugin>
744+
</plugins>
745+
</build>
746+
</profile>
734747
</profiles>
735748
</project>

0 commit comments

Comments
 (0)