Skip to content

Commit d64efdb

Browse files
committed
since tests require Java6 to compile and target has to be compliant to 1.5, added the animal sniffer to make sure we use Java5 methods only
1 parent 03e151a commit d64efdb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,30 @@
6262
</reporting>
6363
<build>
6464
<plugins>
65+
<!--
66+
| Make sure we only use Java5 methods
67+
-->
68+
<plugin>
69+
<groupId>org.codehaus.mojo</groupId>
70+
<artifactId>animal-sniffer-maven-plugin</artifactId>
71+
<version>1.6</version>
72+
<configuration>
73+
<signature>
74+
<groupId>org.codehaus.mojo.signature</groupId>
75+
<artifactId>java15</artifactId>
76+
<version>1.0</version>
77+
</signature>
78+
</configuration>
79+
<executions>
80+
<execution>
81+
<id>check-java-1.5-compat</id>
82+
<phase>process-classes</phase>
83+
<goals>
84+
<goal>check</goal>
85+
</goals>
86+
</execution>
87+
</executions>
88+
</plugin>
6589
<plugin>
6690
<groupId>org.apache.maven.plugins</groupId>
6791
<artifactId>maven-assembly-plugin</artifactId>

0 commit comments

Comments
 (0)