commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1242611 - /commons/sandbox/graph/trunk/pom.xml
Date Thu, 09 Feb 2012 23:52:53 GMT
Author: simonetripodi
Date: Thu Feb  9 23:52:53 2012
New Revision: 1242611

URL: http://svn.apache.org/viewvc?rev=1242611&view=rev
Log:
shaded all internal-use only classes, so users cannot use them accidentally (well, they still
can, but IDEs such as Eclipse are able to resolve $* named classes)

Modified:
    commons/sandbox/graph/trunk/pom.xml

Modified: commons/sandbox/graph/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/pom.xml?rev=1242611&r1=1242610&r2=1242611&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/pom.xml (original)
+++ commons/sandbox/graph/trunk/pom.xml Thu Feb  9 23:52:53 2012
@@ -180,6 +180,42 @@
         <artifactId>cobertura-maven-plugin</artifactId>
         <version>2.5.1</version>
       </plugin>
+
+      <plugin>
+        <groupId>org.sonatype.plugins</groupId>
+        <artifactId>jarjar-maven-plugin</artifactId>
+        <version>1.5</version>
+        <configuration>
+          <input>{classes}</input>
+          <output>${project.build.directory}/classes</output>
+          <overwrite>true</overwrite>
+          <skipManifest>true</skipManifest>
+          <excludes>
+            <exclude>*:*</exclude>
+          </excludes>
+          <rules>
+            <rule>
+              <pattern>org.apache.commons.graph.**.Default*</pattern>
+              <result>org.apache.commons.graph.@1.$@2</result>
+            </rule>
+            <rule>
+              <pattern>org.apache.commons.graph.utils.*</pattern>
+              <result>org.apache.commons.graph.utils.$@1</result>
+            </rule>
+            <keep>
+              <pattern>org.apache.commons.graph.**</pattern>
+            </keep>
+          </rules>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>jarjar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 



Mime
View raw message