Skip to content

Commit

Permalink
Replace animal-sniffer with javac parameter (#312)
Browse files Browse the repository at this point in the history
* Replace animal-sniffer with javac parameter / maven.compiler.release property
  • Loading branch information
Euklios authored Mar 11, 2024
1 parent 6966a23 commit 4bc84da
Showing 1 changed file with 14 additions and 31 deletions.
45 changes: 14 additions & 31 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

<properties>
<base.java.version>1.8</base.java.version>
<maven.compiler.source>${base.java.version}</maven.compiler.source>
<maven.compiler.target>${base.java.version}</maven.compiler.target>

<powermock.version>1.5.2</powermock.version>

Expand Down Expand Up @@ -243,11 +245,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.23</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
Expand Down Expand Up @@ -485,11 +482,6 @@
<artifactId>extra-enforcer-rules</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-enforcer-rule</artifactId>
<version>1.21</version>
</dependency>
</dependencies>
<executions>
<execution>
Expand Down Expand Up @@ -520,27 +512,6 @@
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<executions>
<execution>
<id>check-java-api</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java17</artifactId>
<version>1.0</version>
</signature>
</configuration>
</execution>
</executions>
</plugin>

<!-- Coverage reporting -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down Expand Up @@ -740,4 +711,16 @@
</plugin>
</plugins>
</reporting>

<profiles>
<profile>
<id>set-compiler-release</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<properties>
<maven.compiler.release>${base.java.version}</maven.compiler.release>
</properties>
</profile>
</profiles>
</project>

0 comments on commit 4bc84da

Please sign in to comment.