You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rya.apache.org by mi...@apache.org on 2016/08/26 00:06:38 UTC
[17/52] [abbrv] incubator-rya git commit: RYA-100 Added Maven
animal-sniffer plugin to build.
RYA-100 Added Maven animal-sniffer plugin to build.
Project: http://git-wip-us.apache.org/repos/asf/incubator-rya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-rya/commit/563af2d9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-rya/tree/563af2d9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-rya/diff/563af2d9
Branch: refs/heads/master
Commit: 563af2d9373d28be1dda6353b42aef6ca7a4d2ee
Parents: d9aaca7
Author: Kevin Chilton <ke...@parsons.com>
Authored: Wed Jun 29 17:44:19 2016 -0400
Committer: Aaron Mihalik <mi...@alum.mit.edu>
Committed: Tue Aug 23 10:36:49 2016 -0400
----------------------------------------------------------------------
pom.xml | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-rya/blob/563af2d9/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index ec4bf1c..540aa1e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -568,6 +568,29 @@ under the License.
<target>1.7</target>
</configuration>
</plugin>
+
+ <!-- Fail a build if it uses any Java features introduced after 1.7. -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>animal-sniffer-maven-plugin</artifactId>
+ <version>1.15</version>
+ <configuration>
+ <signature>
+ <groupId>org.codehaus.mojo.signature</groupId>
+ <artifactId>java18</artifactId>
+ <version>1.0</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-resources-plugin</artifactId>
@@ -707,7 +730,12 @@ under the License.
</pluginManagement>
<plugins>
- <plugin>
+ <!-- Fail any build that doesn't use the project's Java version. -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>animal-sniffer-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
<!-- Apache Release Audit Tool - reports missing license headers and other issues. -->
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>