Skip to content

Instantly share code, notes, and snippets.

@tuor713
Created June 19, 2011 08:14
Show Gist options
  • Save tuor713/1033937 to your computer and use it in GitHub Desktop.
Save tuor713/1033937 to your computer and use it in GitHub Desktop.
Animal sniffler for Java 5
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-enforcer-rule</artifactId>
<version>1.6</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>check-java15</id>
<phase>test</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<checkSignatureRule implementation="org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule">
<ignoreDependencies>true</ignoreDependencies>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java15</artifactId>
<version>1.0</version>
</signature>
</checkSignatureRule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment