Skip to content

fix: animal-sniffer and clirr to a profiles #1145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: animal-sniffer-maven-plugin to a profile
b/384085175#comment40

We can skip animal-sniffer-maven-plugin execution if we wrap it as a profile.
  • Loading branch information
suztomo committed Jan 30, 2025
commit d0bd5bb6d7bfc68fc1453a664b52637f643b541a
12 changes: 0 additions & 12 deletions google-oauth-client-appengine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@
</execution>
</executions>
</plugin>
<!--App Engine uses Java 7 or Java 8-->
<plugin>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parent already defines the plugin declaration.

<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java17</artifactId>
<version>1.0</version>
</signature>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand Down
12 changes: 0 additions & 12 deletions google-oauth-client-java6/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@
</execution>
</executions>
</plugin>
<!--Set minimum version to Java 7-->
<plugin>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parent already defines the plugin declaration.

<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java17</artifactId>
<version>1.0</version>
</signature>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand Down
12 changes: 0 additions & 12 deletions google-oauth-client-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,6 @@
</execution>
</executions>
</plugin>
<!--Minimum version is Java 7 -->
<plugin>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parent already defines the plugin declaration.

<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java17</artifactId>
<version>1.0</version>
</signature>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand Down
54 changes: 33 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -415,27 +415,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java17</artifactId>
<version>1.0</version>
</signature>
<ignores>
<ignore>com.sun.net.httpserver.*</ignore>
</ignores>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Build the dependencies report at package time (needed for the assembly artifact). -->
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
Expand Down Expand Up @@ -661,5 +640,38 @@
</snapshotRepository>
</distributionManagement>
</profile>
<profile>
<id>animal-sniffer</id>
<activation>
<!-- The compatibility check runs by default in CIs -->
<jdk>[1.8,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<!--Set minimum version to Java 7-->
<artifactId>java17</artifactId>
<version>1.0</version>
</signature>
<ignores>
<ignore>com.sun.net.httpserver.*</ignore>
</ignores>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>