Skip to content

Commit 5695efd

Browse files
committed
Change jackson-databind dependency to not being shipped transitively (OpenAPITools#60)
1 parent 674ac07 commit 5695efd

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,30 @@ The module is compatible with JDK8+
2525

2626
## Usage
2727

28+
Starting from version `0.2.7` the jackson-databind dependency is no longer transitively shipped with this library. Therefore, it needs to be declared explicitly. This enables you to be more flexible in updating the jackson version you are using for your project.
29+
30+
### Maven
31+
32+
```xml
33+
<dependency>
34+
<groupId>org.openapitools</groupId>
35+
<artifactId>jackson-databind-nullable</artifactId>
36+
<version>0.2.7</version>
37+
</dependency>
38+
<dependency>
39+
<groupId>com.fasterxml.jackson.core</groupId>
40+
<artifactId>jackson-databind</artifactId>
41+
<version>2.18.3</version>
42+
</dependency>
43+
```
44+
45+
### Gradle
46+
47+
```groovy
48+
implementation 'org.openapitools:jackson-databind-nullable:0.2.7'
49+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.3'
50+
```
51+
2852
`JsonNullable` shall primarily be used in bean fields.
2953

3054
If we have the following class

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<dependency>
4444
<groupId>com.fasterxml.jackson.core</groupId>
4545
<artifactId>jackson-databind</artifactId>
46+
<scope>provided</scope>
4647
</dependency>
4748
<dependency>
4849
<groupId>javax.validation</groupId>

0 commit comments

Comments
 (0)