Skip to content

Commit a785a96

Browse files
committed
shade commons-codec also (issue #6)
1 parent 64e2038 commit a785a96

File tree

4 files changed

+29
-31
lines changed

4 files changed

+29
-31
lines changed

.classpath

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
44
<classpathentry kind="output" path="target/classes"/>
55
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6-
<classpathentry kind="var" path="M2_REPO/net/sourceforge/htmlunit/htmlunit/2.56.0/htmlunit-2.56.0.jar" sourcepath="M2_REPO/net/sourceforge/htmlunit/htmlunit/2.56.0/htmlunit-2.56.0-sources.jar"/>
6+
<classpathentry kind="var" path="M2_REPO/net/sourceforge/htmlunit/htmlunit/2.63.0-SNAPSHOT/htmlunit-2.63.0-SNAPSHOT.jar" sourcepath="M2_REPO/net/sourceforge/htmlunit/htmlunit/2.63.0-SNAPSHOT/htmlunit-2.63.0-SNAPSHOT-sources.jar"/>
77
<classpathentry kind="var" path="M2_REPO/xalan/xalan/2.7.2/xalan-2.7.2.jar" sourcepath="M2_REPO/xalan/xalan/2.7.2/xalan-2.7.2-sources.jar"/>
88
<classpathentry kind="var" path="M2_REPO/xalan/serializer/2.7.2/serializer-2.7.2.jar" sourcepath="M2_REPO/xalan/serializer/2.7.2/serializer-2.7.2-sources.jar"/>
9-
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar" sourcepath="M2_REPO/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0-sources.jar"/>
10-
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-text/1.9/commons-text-1.9.jar" sourcepath="M2_REPO/org/apache/commons/commons-text/1.9/commons-text-1.9-sources.jar"/>
119
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpmime/4.5.13/httpmime-4.5.13.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpmime/4.5.13/httpmime-4.5.13-sources.jar"/>
1210
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13-sources.jar"/>
1311
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpcore/4.4.13/httpcore-4.4.13.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpcore/4.4.13/httpcore-4.4.13-sources.jar"/>
1412
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.2/commons-logging-1.2.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.2/commons-logging-1.2-sources.jar"/>
15-
<classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.11/commons-codec-1.11.jar" sourcepath="M2_REPO/commons-codec/commons-codec/1.11/commons-codec-1.11-sources.jar"/>
16-
<classpathentry kind="var" path="M2_REPO/net/sourceforge/htmlunit/htmlunit-core-js/2.56.0/htmlunit-core-js-2.56.0.jar" sourcepath="M2_REPO/net/sourceforge/htmlunit/htmlunit-core-js/2.56.0/htmlunit-core-js-2.56.0-sources.jar"/>
17-
<classpathentry kind="var" path="M2_REPO/net/sourceforge/htmlunit/neko-htmlunit/2.56.0/neko-htmlunit-2.56.0.jar" sourcepath="M2_REPO/net/sourceforge/htmlunit/neko-htmlunit/2.56.0/neko-htmlunit-2.56.0-sources.jar"/>
18-
<classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.12.1/xercesImpl-2.12.1.jar" sourcepath="M2_REPO/xerces/xercesImpl/2.12.1/xercesImpl-2.12.1-sources.jar"/>
13+
<classpathentry kind="var" path="M2_REPO/net/sourceforge/htmlunit/htmlunit-core-js/2.63.0-SNAPSHOT/htmlunit-core-js-2.63.0-SNAPSHOT.jar" sourcepath="M2_REPO/net/sourceforge/htmlunit/htmlunit-core-js/2.63.0-SNAPSHOT/htmlunit-core-js-2.63.0-SNAPSHOT-sources.jar"/>
14+
<classpathentry kind="var" path="M2_REPO/net/sourceforge/htmlunit/neko-htmlunit/2.63.0-SNAPSHOT/neko-htmlunit-2.63.0-SNAPSHOT.jar" sourcepath="M2_REPO/net/sourceforge/htmlunit/neko-htmlunit/2.63.0-SNAPSHOT/neko-htmlunit-2.63.0-SNAPSHOT-sources.jar"/>
15+
<classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.12.2/xercesImpl-2.12.2.jar" sourcepath="M2_REPO/xerces/xercesImpl/2.12.2/xercesImpl-2.12.2-sources.jar"/>
1916
<classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar" sourcepath="M2_REPO/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01-sources.jar"/>
20-
<classpathentry kind="var" path="M2_REPO/net/sourceforge/htmlunit/htmlunit-cssparser/1.11.0/htmlunit-cssparser-1.11.0.jar" sourcepath="M2_REPO/net/sourceforge/htmlunit/htmlunit-cssparser/1.11.0/htmlunit-cssparser-1.11.0-sources.jar"/>
17+
<classpathentry kind="var" path="M2_REPO/net/sourceforge/htmlunit/htmlunit-cssparser/1.12.0/htmlunit-cssparser-1.12.0.jar" sourcepath="M2_REPO/net/sourceforge/htmlunit/htmlunit-cssparser/1.12.0/htmlunit-cssparser-1.12.0-sources.jar"/>
18+
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar" sourcepath="M2_REPO/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0-sources.jar"/>
19+
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-text/1.9/commons-text-1.9.jar" sourcepath="M2_REPO/org/apache/commons/commons-text/1.9/commons-text-1.9-sources.jar"/>
2120
<classpathentry kind="var" path="M2_REPO/commons-io/commons-io/2.10.0/commons-io-2.10.0.jar" sourcepath="M2_REPO/commons-io/commons-io/2.10.0/commons-io-2.10.0-sources.jar"/>
2221
<classpathentry kind="var" path="M2_REPO/commons-net/commons-net/3.8.0/commons-net-3.8.0.jar" sourcepath="M2_REPO/commons-net/commons-net/3.8.0/commons-net-3.8.0-sources.jar"/>
22+
<classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.15/commons-codec-1.15.jar" sourcepath="M2_REPO/commons-codec/commons-codec/1.15/commons-codec-1.15-sources.jar"/>
2323
<classpathentry kind="var" path="M2_REPO/org/brotli/dec/0.1.2/dec-0.1.2.jar" sourcepath="M2_REPO/org/brotli/dec/0.1.2/dec-0.1.2-sources.jar"/>
2424
<classpathentry kind="var" path="M2_REPO/com/shapesecurity/salvation2/3.0.0/salvation2-3.0.0.jar" sourcepath="M2_REPO/com/shapesecurity/salvation2/3.0.0/salvation2-3.0.0-sources.jar"/>
25-
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/websocket/websocket-client/9.4.44.v20210927/websocket-client-9.4.44.v20210927.jar" sourcepath="M2_REPO/org/eclipse/jetty/websocket/websocket-client/9.4.44.v20210927/websocket-client-9.4.44.v20210927-sources.jar"/>
26-
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-client/9.4.44.v20210927/jetty-client-9.4.44.v20210927.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-client/9.4.44.v20210927/jetty-client-9.4.44.v20210927-sources.jar"/>
27-
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-http/9.4.44.v20210927/jetty-http-9.4.44.v20210927.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-http/9.4.44.v20210927/jetty-http-9.4.44.v20210927-sources.jar"/>
28-
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-util/9.4.44.v20210927/jetty-util-9.4.44.v20210927.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-util/9.4.44.v20210927/jetty-util-9.4.44.v20210927-sources.jar"/>
29-
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-io/9.4.44.v20210927/jetty-io-9.4.44.v20210927.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-io/9.4.44.v20210927/jetty-io-9.4.44.v20210927-sources.jar"/>
30-
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/websocket/websocket-common/9.4.44.v20210927/websocket-common-9.4.44.v20210927.jar" sourcepath="M2_REPO/org/eclipse/jetty/websocket/websocket-common/9.4.44.v20210927/websocket-common-9.4.44.v20210927-sources.jar"/>
31-
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/websocket/websocket-api/9.4.44.v20210927/websocket-api-9.4.44.v20210927.jar" sourcepath="M2_REPO/org/eclipse/jetty/websocket/websocket-api/9.4.44.v20210927/websocket-api-9.4.44.v20210927-sources.jar"/>
25+
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/websocket/websocket-client/9.4.46.v20220331/websocket-client-9.4.46.v20220331.jar" sourcepath="M2_REPO/org/eclipse/jetty/websocket/websocket-client/9.4.46.v20220331/websocket-client-9.4.46.v20220331-sources.jar"/>
26+
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-client/9.4.46.v20220331/jetty-client-9.4.46.v20220331.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-client/9.4.46.v20220331/jetty-client-9.4.46.v20220331-sources.jar"/>
27+
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-http/9.4.46.v20220331/jetty-http-9.4.46.v20220331.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-http/9.4.46.v20220331/jetty-http-9.4.46.v20220331-sources.jar"/>
28+
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-util/9.4.46.v20220331/jetty-util-9.4.46.v20220331.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-util/9.4.46.v20220331/jetty-util-9.4.46.v20220331-sources.jar"/>
29+
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-io/9.4.46.v20220331/jetty-io-9.4.46.v20220331.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-io/9.4.46.v20220331/jetty-io-9.4.46.v20220331-sources.jar"/>
30+
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/websocket/websocket-common/9.4.46.v20220331/websocket-common-9.4.46.v20220331.jar" sourcepath="M2_REPO/org/eclipse/jetty/websocket/websocket-common/9.4.46.v20220331/websocket-common-9.4.46.v20220331-sources.jar"/>
31+
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/websocket/websocket-api/9.4.46.v20220331/websocket-api-9.4.46.v20220331.jar" sourcepath="M2_REPO/org/eclipse/jetty/websocket/websocket-api/9.4.46.v20220331/websocket-api-9.4.46.v20220331-sources.jar"/>
3232
</classpath>

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Or to be more detailed, this packages includes
4747
* httpcomponents/httpmime:jar (shaded)
4848
* httpcomponents/httpclient (shaded)
4949
* httpcomponents/httpcore (shaded)
50+
* commons-codec/commons-codec (shaded)
5051

5152
All the other dependencies are still dependencies of this package (see the pom.xml for more).
5253

@@ -66,7 +67,7 @@ If you use maven please add:
6667
<dependency>
6768
<groupId>net.sourceforge.htmlunit</groupId>
6869
<artifactId>htmlunit-android</artifactId>
69-
<version>2.60.0-SNAPSHOT</version>
70+
<version>2.63.0-SNAPSHOT</version>
7071
</dependency>
7172

7273
You have to add the sonatype snapshot repository to your pom distributionManagement section also:

dependency-reduced-pom.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>net.sourceforge.htmlunit</groupId>
55
<artifactId>htmlunit-android</artifactId>
66
<name>HtmlUnitAndroid</name>
7-
<version>2.62.0-SNAPSHOT</version>
7+
<version>2.63.0-SNAPSHOT</version>
88
<description>A headless browser intended for use in testing web-based applications packaged for android.</description>
99
<url>http://htmlunit.sourceforge.net</url>
1010
<issueManagement>
@@ -93,6 +93,10 @@
9393
<pattern>org.apache.http</pattern>
9494
<shadedPattern>org.htmlunit.org.apache.http</shadedPattern>
9595
</relocation>
96+
<relocation>
97+
<pattern>org.apache.commons.codec</pattern>
98+
<shadedPattern>org.htmlunit.org.apache.commons.codec</shadedPattern>
99+
</relocation>
96100
</relocations>
97101
<transformers>
98102
<transformer />
@@ -231,12 +235,6 @@
231235
</exclusion>
232236
</exclusions>
233237
</dependency>
234-
<dependency>
235-
<groupId>org.eclipse.jetty.websocket</groupId>
236-
<artifactId>websocket-client</artifactId>
237-
<version>9.4.46.v20220331</version>
238-
<scope>compile</scope>
239-
</dependency>
240238
</dependencies>
241239
<distributionManagement>
242240
<repository>
@@ -255,7 +253,7 @@
255253
</distributionManagement>
256254
<properties>
257255
<jetty.version>9.4.46.v20220331</jetty.version>
258-
<htmlunit.version>2.62.0</htmlunit.version>
256+
<htmlunit.version>2.63.0-SNAPSHOT</htmlunit.version>
259257
<maven.compiler.source>8</maven.compiler.source>
260258
<additionalparam>-Xdoclint:none</additionalparam>
261259
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

pom.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>net.sourceforge.htmlunit</groupId>
77
<artifactId>htmlunit-android</artifactId>
8-
<version>2.62.0-SNAPSHOT</version>
8+
<version>2.63.0-SNAPSHOT</version>
99

1010
<name>HtmlUnitAndroid</name>
1111
<organization>
@@ -26,7 +26,7 @@
2626
<maven.compiler.source>8</maven.compiler.source>
2727
<maven.compiler.target>8</maven.compiler.target>
2828

29-
<htmlunit.version>2.62.0</htmlunit.version>
29+
<htmlunit.version>2.63.0-SNAPSHOT</htmlunit.version>
3030
<jetty.version>9.4.46.v20220331</jetty.version>
3131
</properties>
3232

@@ -88,6 +88,10 @@
8888
<pattern>org.apache.http</pattern>
8989
<shadedPattern>org.htmlunit.org.apache.http</shadedPattern>
9090
</relocation>
91+
<relocation>
92+
<pattern>org.apache.commons.codec</pattern>
93+
<shadedPattern>org.htmlunit.org.apache.commons.codec</shadedPattern>
94+
</relocation>
9195
</relocations>
9296

9397
<transformers>
@@ -240,11 +244,6 @@
240244
<artifactId>commons-net</artifactId>
241245
<version>3.8.0</version>
242246
</dependency>
243-
<dependency>
244-
<groupId>commons-codec</groupId>
245-
<artifactId>commons-codec</artifactId>
246-
<version>1.15</version>
247-
</dependency>
248247
<dependency>
249248
<groupId>org.brotli</groupId>
250249
<artifactId>dec</artifactId>

0 commit comments

Comments
 (0)