Skip to content

Commit 82eaa69

Browse files
authored
Note integration sections in Gradle (#612)
1 parent da20215 commit 82eaa69

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ All modules are licensed under [Apache License 2.0](http://www.apache.org/licens
5151

5252
To use Jackson 2.x compatible version of this extension on Maven-based projects, use following dependency:
5353

54+
Maven:
5455
```xml
5556
<dependency>
5657
<groupId>com.fasterxml.jackson.dataformat</groupId>
@@ -59,11 +60,19 @@ To use Jackson 2.x compatible version of this extension on Maven-based projects,
5960
</dependency>
6061
```
6162

63+
Gradle:
64+
```groovy
65+
dependencies {
66+
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.15.0'
67+
}
68+
```
69+
6270
(or whatever version is most up-to-date at the moment)
6371

6472
Also: you usually also want to make sure that XML library in use is [Woodstox](https://github.com/FasterXML/woodstox) since it is not only faster than Stax implementation JDK provides, but also works better and avoids some known issues like adding unnecessary namespace prefixes.
6573
You can do this by adding this in your `pom.xml`:
6674

75+
Maven:
6776
```xml
6877
<dependency>
6978
<groupId>com.fasterxml.woodstox</groupId>
@@ -72,6 +81,13 @@ You can do this by adding this in your `pom.xml`:
7281
</dependency>
7382
```
7483

84+
Gradle:
85+
```groovy
86+
dependencies {
87+
implementation 'com.fasterxml.woodstox:woodstox-core:6.5.0'
88+
}
89+
```
90+
7591
# Usage
7692

7793
Although module implements low-level (`JsonFactory` / `JsonParser` / `JsonGenerator`) abstractions,

0 commit comments

Comments
 (0)