Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff7b3bf

Browse files
committed
mention gradle also
1 parent 706ab15 commit ff7b3bf

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ The latest builds are available from our
156156
[![Build Status](https://jenkins.wetator.org/buildStatus/icon?job=HtmlUnit+-+Neko)](https://jenkins.wetator.org/view/HtmlUnit/job/HtmlUnit%20-%20Neko/)
157157

158158

159-
If you use maven please add:
159+
Read on if you want to try the latest bleeding-edge snapshot.
160+
161+
### Maven
162+
163+
Add the dependency to your `pom.xml`:
160164

161165
<dependency>
162166
<groupId>org.htmlunit</groupId>
@@ -181,6 +185,23 @@ You have to add the Central Portal snapshot repository to your pom `repositories
181185
</repository>
182186
</repositories>
183187

188+
### Gradle
189+
190+
Add the snapshot repository and dependency to your `build.gradle`:
191+
192+
```groovy
193+
repositories {
194+
maven { url "https://central.sonatype.com/repository/maven-snapshots" }
195+
// ...
196+
}
197+
// ...
198+
dependencies {
199+
implementation group: 'org.htmlunit', name: 'neko-htmlunit', version: '4.14.0-SNAPSHOT'
200+
// ...
201+
}
202+
```
203+
204+
184205
## Porting from 3.x to 4.x
185206

186207
Version 4.x introduces a major change in the handling of encodings - the mapping from the encoding

0 commit comments

Comments
 (0)