Skip to content

Commit 51cf125

Browse files
committed
5.0.0
1 parent 5373a01 commit 51cf125

6 files changed

Lines changed: 31 additions & 30 deletions

File tree

README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ![HtmlUnit Logo](https://github.com/HtmlUnit/htmlunit/blob/master/src/site/resources/images/htmlunit.png)
22

3-
Version 4.21.0 / December 28, 2025
3+
Version 5.0.0 / May 24, 2025
44

55
:heart: [Sponsor](https://github.com/sponsors/rbri)
66

@@ -50,24 +50,10 @@ HtmlUnit is typically used for testing purposes or to retrieve information from
5050

5151
#### Version 5
5252

53-
Work on HtmlUnit 5.0 has started. This new major version will require **JDK 17 or higher**.
53+
Starting with version 5.0.0, **JDK 17 or higher is required**.
54+
If you are still on JDK 8, see [Legacy Support (JDK 8)](#legacy-support-jdk-8) below.
5455

5556

56-
#### Legacy Support (JDK 8)
57-
58-
If you need to continue using **JDK 8**, please note that versions 4.x will remain available as-is. However,
59-
**ongoing maintenance and fixes for JDK 8 compatibility are only available through sponsorship**.
60-
61-
Maintaining separate fix versions for JDK 8 requires significant additional effort for __backporting__, testing, and release management.
62-
63-
**To enable continued JDK 8 support**, please contact me via email to discuss sponsorship options. Sponsorship provides:
64-
65-
- __Backporting__ security and bug fixes to the 4.x branch
66-
- Maintaining compatibility with older Java versions
67-
- Timely releases for critical issues
68-
69-
Without sponsorship, the 4.x branch will not receive updates. Your support ensures the long-term __sustainability__ of this project across multiple Java versions.
70-
7157
## Get it!
7258

7359
* [Download from GitHub](https://github.com/HtmlUnit/htmlunit/releases)
@@ -82,7 +68,7 @@ Add to your `pom.xml`:
8268
<dependency>
8369
<groupId>org.htmlunit</groupId>
8470
<artifactId>htmlunit</artifactId>
85-
<version>4.21.0</version>
71+
<version>5.0.0</version>
8672
</dependency>
8773
```
8874

@@ -91,7 +77,7 @@ Add to your `pom.xml`:
9177
Add to your `build.gradle`:
9278

9379
```groovy
94-
implementation group: 'org.htmlunit', name: 'htmlunit', version: '4.21.0'
80+
implementation group: 'org.htmlunit', name: 'htmlunit', version: '5.0.0'
9581
```
9682

9783
## Getting Started
@@ -210,6 +196,21 @@ Every contribution - from bug reports to feature requests, typos to full new fea
210196

211197
Please try to keep your pull requests small (don't bundle unrelated changes) and try to include test cases.
212198

199+
200+
<a name="legacy-support-jdk-8"></a>
201+
### Legacy Support (JDK 8)
202+
203+
If you need to continue using **JDK 8**, versions 4.x remain available as-is.
204+
Ongoing maintenance and fixes for JDK 8 are only available through sponsorship —
205+
please contact me via email to discuss options. Sponsorship provides:
206+
207+
- Backporting security and bug fixes to the 4.x branch
208+
- Compatibility maintenance with older Java versions
209+
- Timely releases for critical issues
210+
211+
Without sponsorship, the 4.x branch will not receive further updates.
212+
213+
213214
## Last CI build
214215
The latest builds are available from our
215216
[Jenkins CI build server](https://jenkins.wetator.org/view/HtmlUnit/)
@@ -260,7 +261,7 @@ repositories {
260261
}
261262
// ...
262263
dependencies {
263-
implementation group: 'org.htmlunit', name: 'htmlunit', version: '4.21.0-SNAPSHOT'
264+
implementation group: 'org.htmlunit', name: 'htmlunit', version: '5.1.0-SNAPSHOT'
264265
// ...
265266
}
266267
```

pom.xml

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

77
<groupId>org.htmlunit</groupId>
88
<artifactId>htmlunit</artifactId>
9-
<version>5.0.0-SNAPSHOT</version>
9+
<version>5.0.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>HtmlUnit</name>
@@ -54,7 +54,7 @@
5454
<!--brotli.version>0.1.2</brotli.version-->
5555

5656
<!-- selenium -->
57-
<htmlunitdriver.version>5.0.0-SNAPSHOT</htmlunitdriver.version>
57+
<htmlunitdriver.version>4.44.0</htmlunitdriver.version>
5858
<selenium.version>4.44.0</selenium.version>
5959
<selenium.devtools.artifactId>selenium-devtools-v148</selenium.devtools.artifactId>
6060

@@ -94,7 +94,7 @@
9494
<source-plugin.version>3.4.0</source-plugin.version>
9595
<javadoc-plugin.version>3.12.0</javadoc-plugin.version>
9696
<surefire-plugin.version>3.5.5</surefire-plugin.version>
97-
<site-plugin.version>3.21.0</site-plugin.version>
97+
<site-plugin.version>3.12.1</site-plugin.version>
9898
<bundle-plugin.version>6.0.2</bundle-plugin.version>
9999
<jacoco-plugin.version>0.8.14</jacoco-plugin.version>
100100
<jdepend-plugin.version>2.2.0</jdepend-plugin.version>

src/main/java/org/htmlunit/html/serializer/HtmlSerializerInnerOuterText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ protected void appendDetails(final HtmlSerializerTextBuilder builder,
252252
}
253253

254254
/**
255-
* Process {@link HtmlDefinitionTermTerm}.
255+
* Process {@link HtmlDefinitionTerm}.
256256
*
257257
* @param builder the StringBuilder to add to
258258
* @param htmlDefinitionTerm the target to process

src/main/java/org/htmlunit/javascript/host/dom/Document.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public void jsConstructor() {
288288
* @param thisObj the scriptable this object
289289
* @param args the arguments
290290
* @param funObj the function object
291-
* @return a newly created {@link HTMLDocument}
291+
* @return a newly created {@link org.htmlunit.javascript.host.html.HTMLDocument}
292292
*
293293
* @see <a href="https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-parsehtmlunsafe">
294294
* HTML spec - parseHTMLUnsafe</a>

src/site/xdoc/development.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<subsection name="Prerequisites">
2020
<p>Before starting, ensure you have the following installed:</p>
2121
<ul>
22-
<li><strong>Java Development Kit (JDK 11)</strong> HtmlUnit is JDK 8 but for running the untit test JDK 11 is required</li>
22+
<li><strong>Java Development Kit (JDK 17)</strong></li>
2323
<li><strong>Eclipse IDE</strong></li>
2424
<li><strong>Maven 3</strong></li>
2525
<li><strong>Git</strong> use your favorite git client</li>

src/site/xdoc/index.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@
9292
<section name="Where to find...">
9393
<p>
9494
<dl>
95-
<dt>Latest release <date>December 28, 2025</date></dt>
95+
<dt>Latest release <date>May 24, 2025</date></dt>
9696
<dd>
97-
<p><a href="https://github.com/HtmlUnit/htmlunit/releases/tag/4.21.0">version 4.21.0</a></p>
97+
<p><a href="https://github.com/HtmlUnit/htmlunit/releases/tag/5.0.0">version 5.0.0</a></p>
9898
</dd>
9999

100100
<dt>Source code</dt>
@@ -220,14 +220,14 @@
220220
<dependency>
221221
<groupId>org.htmlunit</groupId>
222222
<artifactId>htmlunit</artifactId>
223-
<version>4.21.0</version>
223+
<version>5.0.0</version>
224224
</dependency>]]></source>
225225
</p>
226226

227227
<p>
228228
For gradle, you would add:
229229
<source><![CDATA[
230-
implementation group: 'org.htmlunit', name: 'htmlunit', version: '4.21.0']]></source>
230+
implementation group: 'org.htmlunit', name: 'htmlunit', version: '5.0.0']]></source>
231231
</p>
232232

233233
<p>

0 commit comments

Comments
 (0)