FELIX-3486 Basic setup for class file and API compliance configuration
- Define properties for class file definition
- Add Animal Sniffer plugin (Java API compliance)
- Define default setup for animal sniffer
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1330389 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom/pom.xml b/pom/pom.xml
index d191523..1327a89 100644
--- a/pom/pom.xml
+++ b/pom/pom.xml
@@ -37,6 +37,13 @@
<properties>
<sourceReleaseAssemblyDescriptor>source-release-zip-tar</sourceReleaseAssemblyDescriptor>
+
+ <!-- Default Java VM and API compatibility -->
+ <felix.build.source>1.3</felix.build.source>
+ <felix.build.target>1.3</felix.build.target>
+ <felix.java.signature.groupId>org.codehaus.mojo.signature</felix.java.signature.groupId>
+ <felix.java.signature.artifactId>java13-sun</felix.java.signature.artifactId>
+ <felix.java.signature.version>1.0</felix.java.signature.version>
</properties>
<issueManagement>
@@ -144,8 +151,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.3</source>
- <target>1.3</target>
+ <source>${felix.build.source}</source>
+ <target>${felix.build.target}</target>
</configuration>
</plugin>
<plugin>
@@ -170,6 +177,26 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>animal-sniffer-maven-plugin</artifactId>
+ <version>1.7</version>
+ <configuration>
+ <signature>
+ <groupId>${felix.java.signature.groupId}</groupId>
+ <artifactId>${felix.java.signature.artifactId}</artifactId>
+ <version>${felix.java.signature.version}</version>
+ </signature>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>