11# HtmlUnit Android package
22
3- Version 2.67 .0 / November 20, 2022
3+ Version 3.1 .0 / April 17, 2023
44
55:heart : [ Sponsor] ( https://github.com/sponsors/rbri )
66
7- [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/net.sourceforge. htmlunit/htmlunit -android/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/net.sourceforge. htmlunit/htmlunit -android )
7+ [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/org. htmlunit/htmlunit3 -android/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/org. htmlunit/htmlunit3 -android )
88
99** Homepage**
1010
11- [ htmlunit.sourceforge.io ] ( https://github.com/HtmlUnit/htmlunit-android )
11+ [ https://github.com/HtmlUnit/htmlunit-android ] ( https://github.com/HtmlUnit/htmlunit-android )
1212
1313** News**
1414
@@ -22,9 +22,9 @@ Add to your `pom.xml`:
2222
2323``` xml
2424<dependency >
25- <groupId >net.sourceforge .htmlunit</groupId >
26- <artifactId >htmlunit -android</artifactId >
27- <version >2.67 .0</version >
25+ <groupId >org .htmlunit</groupId >
26+ <artifactId >htmlunit3 -android</artifactId >
27+ <version >3.1 .0</version >
2828</dependency >
2929```
3030
@@ -33,7 +33,7 @@ Add to your `pom.xml`:
3333Add to your ` build.gradle ` :
3434
3535``` groovy
36- implementation group: 'net.sourceforge. htmlunit', name: 'htmlunit -android', version: '2.67 .0'
36+ implementation group: 'org. htmlunit', name: 'htmlunit3 -android', version: '3.1 .0'
3737```
3838
3939Overview
@@ -44,22 +44,21 @@ But Android is a bit different because the Android SDK already includes some (ol
4444HtmlUnit uses a more recent version HttpClient; and this is where the problem begins.
4545
4646To solve the conflicts, this package uses [ shading] ( https://maven.apache.org/plugins/maven-shade-plugin/ ) and
47- includes the HttpClient in the jar file itself but with a modified package name. There are no changes done
48- to the implementation.
47+ includes the HttpClient and apache commons-codec in the jar file itself but with a modified package name.
48+ There are no changes done to the implementation.
4949
5050Or to be more detailed, this packages includes
51- * HtmlUnit itself
52- * htmlunit-core-js
53- * htmlunit-cssparser
51+ * HtmlUnit itself (org.htmlunit, netscape.javascript)
52+ * htmlunit-core-js (org.htmlunit.corejs)
53+ * htmlunit-cssparser (org.htmlunit.cssparser)
54+ * htmlunit-xpath (org.htmlunit.xpath)
55+ * neko-htmlunit (org.htmlunit.cyberneko)
5456
55- * neko- htmlunit
56- * xml-apis/xml-apis : jar
57- * xerces/xercesImpl
57+ * httpcomponents/httpmime : jar (shaded org.apache.http -> org. htmlunit.org.apache.http)
58+ * httpcomponents/httpclient (shaded org.apache.http -> org.htmlunit.org.apache.http)
59+ * httpcomponents/httpcore (shaded org.apache.http -> org.htmlunit.org.apache.http)
5860
59- * httpcomponents/httpmime: jar (shaded)
60- * httpcomponents/httpclient (shaded)
61- * httpcomponents/httpcore (shaded)
62- * commons-codec/commons-codec (shaded)
61+ * commons-codec/commons-codec (shaded org.apache.commons.codec -> org.htmlunit.org.apache.commons.codec)
6362
6463All the other dependencies are still dependencies of this package (see the pom.xml for more).
6564
@@ -88,7 +87,7 @@ Add the snapshot repository and dependency to your `pom.xml`:
8887 <!-- ... -->
8988 <repository >
9089 <id >OSS Sonatype snapshots</id >
91- <url >https://oss.sonatype.org/content/repositories/snapshots/</url >
90+ <url >https://s01. oss.sonatype.org/content/repositories/snapshots/</url >
9291 <snapshots >
9392 <enabled >true</enabled >
9493 <updatePolicy >always</updatePolicy >
@@ -102,8 +101,8 @@ Add the snapshot repository and dependency to your `pom.xml`:
102101 <dependencies >
103102 <dependency >
104103 <groupId >net.sourceforge.htmlunit</groupId >
105- <artifactId >htmlunit -android</artifactId >
106- <version >2.68 .0-SNAPSHOT</version >
104+ <artifactId >htmlunit3 -android</artifactId >
105+ <version >3.2 .0-SNAPSHOT</version >
107106 </dependency >
108107 <!-- ... -->
109108 </dependencies >
@@ -117,12 +116,12 @@ Add the snapshot repository and dependency to your `build.gradle`:
117116
118117``` groovy
119118repositories {
120- maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
119+ maven { url "https://os1. oss.sonatype.org/content/repositories/snapshots" }
121120 // ...
122121}
123122// ...
124123dependencies {
125- implementation group: 'net.sourceforge. htmlunit', name: 'htmlunit -android', version: '2.68 .0-SNAPSHOT'
124+ implementation group: 'org. htmlunit', name: 'htmlunit3 -android', version: '3.2 .0-SNAPSHOT'
126125 // ...
127126}
128127```
0 commit comments