Skip to content

Instantly share code, notes, and snippets.

@deverton
Created July 29, 2015 23:22
Show Gist options
  • Save deverton/82d3853d8a6bff84ea31 to your computer and use it in GitHub Desktop.
Save deverton/82d3853d8a6bff84ea31 to your computer and use it in GitHub Desktop.
Snippet to verify only JDK7 APIs are used
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>signature-check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java17</artifactId>
<version>1.0</version>
</signature>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment