accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject [7/8] accumulo git commit: ACCUMULO-3720 Use apilyzer-maven-plugin
Date Tue, 21 Apr 2015 22:23:33 GMT
ACCUMULO-3720 Use apilyzer-maven-plugin

Use plugin to check for API problems


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/18a31884
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/18a31884
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/18a31884

Branch: refs/heads/1.7
Commit: 18a31884c9486090bfa298d972485b5081d92d10
Parents: 61b76b5
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Fri Apr 10 15:10:07 2015 -0400
Committer: Keith Turner <kturner@apache.org>
Committed: Tue Apr 21 17:53:31 2015 -0400

----------------------------------------------------------------------
 core/pom.xml        | 30 ++++++++++++++++++++++++++++++
 minicluster/pom.xml | 30 ++++++++++++++++++++++++++++++
 pom.xml             |  5 +++++
 3 files changed, 65 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/18a31884/core/pom.xml
----------------------------------------------------------------------
diff --git a/core/pom.xml b/core/pom.xml
index 4a3500c..f4918bc 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -166,6 +166,36 @@
     </pluginManagement>
     <plugins>
       <plugin>
+        <groupId>net.revelc.apilyzer</groupId>
+        <artifactId>apilyzer-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>apilyzer</id>
+            <goals>
+              <goal>analyze</goal>
+            </goals>
+            <configuration>
+              <includes>
+                <include>org[.]apache[.]accumulo[.]core[.]client[.].*</include>
+                <include>org[.]apache[.]accumulo[.]core[.]data[.](Mutation|Key|Value|Condition|ConditionalMutation|Range|ByteSequence|PartialKey|Column)([$].*)?</include>
+                <include>org[.]apache[.]accumulo[.]core[.]security[.](ColumnVisibility|Authorizations|NamespacePermission|SystemPermission|TablePermission)([$].*)?</include>
+              </includes>
+              <excludes>
+                <exclude>.*Impl</exclude>
+                <exclude>.*[.]impl[.].*</exclude>
+                <exclude>org[.]apache[.]accumulo[.]core[.]client[.]mock[.].*</exclude>
+              </excludes>
+              <allows>
+                <allow>org[.]apache[.]accumulo[.].*[.]thrift[.].*</allow>
+                <allow>org[.]apache[.]commons[.].*</allow>
+                <allow>org[.]apache[.]hadoop[.].*</allow>
+                <allow>org[.]apache[.]log4j[.].*</allow>
+              </allows>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-resources-plugin</artifactId>
         <executions>

http://git-wip-us.apache.org/repos/asf/accumulo/blob/18a31884/minicluster/pom.xml
----------------------------------------------------------------------
diff --git a/minicluster/pom.xml b/minicluster/pom.xml
index adec106..2f46eaf 100644
--- a/minicluster/pom.xml
+++ b/minicluster/pom.xml
@@ -115,4 +115,34 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>net.revelc.apilyzer</groupId>
+        <artifactId>apilyzer-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>apilyzer</id>
+            <goals>
+              <goal>analyze</goal>
+            </goals>
+            <configuration>
+              <includes>
+                <include>org[.]apache[.]accumulo[.]minicluster[.].*</include>
+              </includes>
+              <excludes>
+                <exclude>.*Impl</exclude>
+                <exclude>.*[.]impl[.].*</exclude>
+              </excludes>
+              <allows>
+                <allow>org[.]apache[.]accumulo[.]core[.]client[.].*</allow>
+                <allow>org[.]apache[.]accumulo[.]core[.]data[.](Mutation|Key|Value|Condition|ConditionalMutation|Range|ByteSequence|PartialKey|Column)([$].*)?</allow>
+                <allow>org[.]apache[.]accumulo[.]core[.]security[.](ColumnVisibility|Authorizations|NamespacePermission|SystemPermission|TablePermission)([$].*)?</allow>
+              </allows>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>

http://git-wip-us.apache.org/repos/asf/accumulo/blob/18a31884/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 70ca34b..f12c767 100644
--- a/pom.xml
+++ b/pom.xml
@@ -898,6 +898,11 @@
           <artifactId>maven-bundle-plugin</artifactId>
           <version>2.5.3</version>
         </plugin>
+        <plugin>
+          <groupId>net.revelc.apilyzer</groupId>
+          <artifactId>apilyzer-maven-plugin</artifactId>
+          <version>1.0.0</version>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>


Mime
View raw message