Skip to content

Commit 83fe0f3

Browse files
authored
fix: animalsniffer to a profile (#975)
1 parent 2322b78 commit 83fe0f3

File tree

1 file changed

+31
-20
lines changed

1 file changed

+31
-20
lines changed

java-shared-config/pom.xml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -355,26 +355,6 @@
355355
</execution>
356356
</executions>
357357
</plugin>
358-
<plugin>
359-
<groupId>org.codehaus.mojo</groupId>
360-
<artifactId>animal-sniffer-maven-plugin</artifactId>
361-
<version>1.24</version>
362-
<executions>
363-
<execution>
364-
<id>java8</id>
365-
<goals>
366-
<goal>check</goal>
367-
</goals>
368-
<configuration>
369-
<signature>
370-
<groupId>org.codehaus.mojo.signature</groupId>
371-
<artifactId>java18</artifactId>
372-
<version>1.0</version>
373-
</signature>
374-
</configuration>
375-
</execution>
376-
</executions>
377-
</plugin>
378358
</plugins>
379359
</build>
380360

@@ -717,5 +697,36 @@
717697
</plugins>
718698
</build>
719699
</profile>
700+
<profile>
701+
<id>animal-sniffer</id>
702+
<activation>
703+
<!-- The compatibility check runs by default in CIs -->
704+
<jdk>[1.8,)</jdk>
705+
</activation>
706+
<build>
707+
<plugins>
708+
<plugin>
709+
<groupId>org.codehaus.mojo</groupId>
710+
<artifactId>animal-sniffer-maven-plugin</artifactId>
711+
<version>1.24</version>
712+
<executions>
713+
<execution>
714+
<id>java8</id>
715+
<goals>
716+
<goal>check</goal>
717+
</goals>
718+
<configuration>
719+
<signature>
720+
<groupId>org.codehaus.mojo.signature</groupId>
721+
<artifactId>java18</artifactId>
722+
<version>1.0</version>
723+
</signature>
724+
</configuration>
725+
</execution>
726+
</executions>
727+
</plugin>
728+
</plugins>
729+
</build>
730+
</profile>
720731
</profiles>
721732
</project>

0 commit comments

Comments
 (0)