Permalink
Browse files

animal sniffer plugin is only executed on Travis, travis jdk7 build

disabled (doesnt work with errorprone and is not necessary due to the
animal sniffer plugin and javac source and target lvl)
  • Loading branch information...
1 parent 5a2796d commit 382fb20c5ba12aee35c34e57aa4137dd1f888dcf @afdia afdia committed Feb 11, 2016
Showing with 23 additions and 24 deletions.
  1. +1 −1 .travis.yml
  2. +22 −23 pom.xml
View
@@ -1,6 +1,6 @@
language: java
jdk:
- - oraclejdk7
+# - oraclejdk7 # JDK7 doesnt work with Google Error-Prone
- oraclejdk8
script: "mvn clean install -P checks"
View
@@ -115,29 +115,6 @@
</resource>
</resources>
<plugins>
- <!-- use animal sniffer plugin to verify that only Java APIs up to a specific version are used -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>animal-sniffer-maven-plugin</artifactId>
- <version>1.7</version>
- <executions>
- <execution>
- <id>check-java-api</id>
- <phase>test</phase>
- <goals>
- <goal>check</goal>
- </goals>
- <configuration>
- <signature>
- <groupId>org.codehaus.mojo.signature
- </groupId>
- <artifactId>${animal.sniffer.java.api}</artifactId>
- <version>1.1</version>
- </signature>
- </configuration>
- </execution>
- </executions>
- </plugin>
<!-- use buildnumber-maven-plugin to create several versions of timestamp variables -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
@@ -348,6 +325,28 @@
<excludeFilterFile>${basedir}/src/main/findbugs/findbugs-exclude.xml</excludeFilterFile>
</configuration>
</plugin>
+ <!-- use animal sniffer plugin to verify that only Java APIs up to a specific version are used -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>animal-sniffer-maven-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <id>check-java-api</id>
+ <phase>test</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <signature>
+ <groupId>org.codehaus.mojo.signature</groupId>
+ <artifactId>${animal.sniffer.java.api}</artifactId>
+ <version>1.1</version>
+ </signature>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>

0 comments on commit 382fb20

Please sign in to comment.