Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit f4634e8072e86c719bd118028a600fa57cfffdec 1 parent ebd2191
Felix Meschberger authored
Showing with 29 additions and 2 deletions.
  1. +29 −2 pom/pom.xml
View
31 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>
Please sign in to comment.
Something went wrong with that request. Please try again.