8000 [Issue 75] Solve commons-codec conflict on Android · robccan/google-http-java-client@bf9e13e · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit bf9e13e

Browse files
committed
[Issue 75] Solve commons-codec conflict on Android
http://codereview.appspot.com/5955047/
1 parent 423f420 commit bf9e13e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

google-http-client/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,27 @@
5959
<goal>run</goal>
6060
</goals>
6161
</execution>
62+
<!-- Remove extraneous files from the jarjar'ed Apache Commons Codec
63+
Library. -->
64+
<execution>
65+
<id>scrub</id>
66+
<phase>install</phase>
67+
<goals>
68+
<goal>run</goal>
69+
</goals>
70+
<configuration>
71+
<target>
72+
<jar destfile="target/scrubbed.jar" filesetmanifest="merge">
73+
<zipfileset src="target/google-http-client-${project.version}.jar">
74+
<exclude name="**/org/apache/commons/codec/language/bm/*.txt"/>
75+
<exclude name="META-INF/*.txt"/>
76+
<exclude name="META-INF/maven/**"/>
77+
</zipfileset>
78+
</jar>
79+
<copy file="target/scrubbed.jar" tofile="target/google-http-client-${project.version}.jar"/>
80+
</target>
81+
</configuration>
82+
</execution>
6283
</executions>
6384
</plugin>
6485
<plugin>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@
194194
<version>2.3.1</version>
195195
<configuration>
196196
<archive>
197+
<addMavenDescriptor>false</addMavenDescriptor>
197198
<manifest>
198199
<addClasspath>true</addClasspath>
199200
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>

0 commit comments

Comments
 (0)
0