You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bahir.apache.org by lr...@apache.org on 2016/06/18 20:08:04 UTC

bahir git commit: [BAHIR-15] Enable RAT on builds

Repository: bahir
Updated Branches:
  refs/heads/master 7bc3d6e91 -> 86ee8779c


[BAHIR-15] Enable RAT on builds

Enable RAT to run automatically during builds
to verify license header policy.


Project: http://git-wip-us.apache.org/repos/asf/bahir/repo
Commit: http://git-wip-us.apache.org/repos/asf/bahir/commit/86ee8779
Tree: http://git-wip-us.apache.org/repos/asf/bahir/tree/86ee8779
Diff: http://git-wip-us.apache.org/repos/asf/bahir/diff/86ee8779

Branch: refs/heads/master
Commit: 86ee8779c7980e10c1c246fff7a171d0118c0239
Parents: 7bc3d6e
Author: Luciano Resende <lr...@apache.org>
Authored: Sat Jun 18 13:06:54 2016 -0700
Committer: Luciano Resende <lr...@apache.org>
Committed: Sat Jun 18 13:06:54 2016 -0700

----------------------------------------------------------------------
 pom.xml | 55 +++++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 45 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bahir/blob/86ee8779/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 31cc556..3b5c91f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -418,6 +418,34 @@
           </executions>
         </plugin>
         <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <version>0.12</version>
+          <executions>
+            <execution>
+              <id>enforce-licenses</id>
+              <phase>package</phase>
+              <goals>
+                <goal>check</goal>
+              </goals>
+            </execution>
+          </executions>
+          <configuration>
+            <excludes>
+              <exclude>.gitignore</exclude>
+              <exclude>.repository/</exclude>
+              <exclude>.idea/</exclude>
+              <exclude>.git</exclude>
+              <exclude>.settings</exclude>
+              <exclude>.classpath</exclude>
+              <exclude>.project</exclude>
+              <exclude>**/dependency-reduced-pom.xml</exclude>
+              <exclude>**/target/**</exclude>
+              <exclude>**/README.md</exclude>
+            </excludes>
+          </configuration>
+        </plugin>
+        <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>build-helper-maven-plugin</artifactId>
           <version>1.10</version>
@@ -742,6 +770,7 @@
       </plugins>
     </pluginManagement>
 
+    <defaultGoal>clean install org.apache.rat:apache-rat-plugin:check</defaultGoal>
     <plugins>
       <!-- This plugin dumps the test classpath into a file -->
       <plugin>
@@ -826,6 +855,11 @@
         <artifactId>maven-enforcer-plugin</artifactId>
       </plugin>
       <plugin>
+        <groupId>org.apache.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <version>0.11</version>
+      </plugin>
+      <plugin>
         <groupId>net.alchim31.maven</groupId>
         <artifactId>scala-maven-plugin</artifactId>
       </plugin>
@@ -1001,16 +1035,6 @@
     </profile>
 
     <profile>
-      <id>test-java-home</id>
-      <activation>
-        <property><name>env.JAVA_HOME</name></property>
-      </activation>
-      <properties>
-        <test.java.home>${env.JAVA_HOME}</test.java.home>
-      </properties>
-    </profile>
-
-    <profile>
       <id>scala-2.11</id>
       <activation>
         <property><name>!scala-2.10</name></property>
@@ -1045,5 +1069,16 @@
         </plugins>
       </build>
     </profile>
+
+    <profile>
+      <id>test-java-home</id>
+      <activation>
+        <property><name>env.JAVA_HOME</name></property>
+      </activation>
+      <properties>
+        <test.java.home>${env.JAVA_HOME}</test.java.home>
+      </properties>
+    </profile>
+
   </profiles>
 </project>