You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two ways to use the BOM pom: either as parent pom:
21
22
22
23
```xml
@@ -49,6 +50,35 @@ Two approaches are same with respect to dependency inclusion; latter ONLY includ
49
50
former includes many other settings.
50
51
Usually latter is preferable, unless component is very closely coupled with core Jackson components.
51
52
53
+
### Usage (Gradle)
54
+
55
+
Newer Gradle versions support "platform" concept (see f.ex [Using a plaform](https://docs.gradle.org/current/userguide/platforms.html#sec:using-platform-to-control-transitive-deps)).
56
+
You will need to use "java platform" plugin and then add dependency as follows (in Groovy DSL):
57
+
58
+
```
59
+
plugins {
60
+
id 'java'
61
+
}
62
+
63
+
repositories {
64
+
mavenCentral()
65
+
}
66
+
67
+
dependencies {
68
+
// Import the Jackson BOM — pick the version you want
@@ -87,13 +117,20 @@ As the specific example, `jackson-databind` `2.12.6.1` was released on March 26,
87
117
* Version numbers will sort appropriately: `2.12.6.20220326` comes after both `2.12.6` and hypothetical `2.12.6.1`
88
118
* Version number gives an idea of release date, wrt time of hot fix(es) included
89
119
120
+
### Exception: 'jackson-annotations' has no patch version (2.20+)
121
+
122
+
One exception to the 3-digit versioning is that starting with [Jackson 2.20](https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.20), [jackson-annotations](https://github.com/FasterXML/jackson-annotations) will use shorter versions consisting of only `major.minor` parts.
123
+
124
+
So: there will normally only be versions `2.20`, `2.21` and so on; and no patch versions.
125
+
There MAY be critical patches, theoretically, if absolutely required, but no planned ones.
126
+
This change was prompted by the decision to keep Jackson 3.x non-annotations components (mostly [jackson-databind](https://github.com/FasterXML/jackson-databind)) use and support same annotations as 2.x.
127
+
90
128
## Secondary: "base" sub-project
91
129
92
130
Note that this repo ALSO contains `jackson-base` (see under dir `base/`), which is the intended
93
131
parent pom for Jackson core components.
94
-
It extends `jackson-bom`, augmenting with settings that
95
-
are only/mostly relevant for Jackson components, but not to things that depend on Jackson in general.
96
-
Use of `jackson-base` is not recommended for libraries that are not meant to be coupled with Jackson
132
+
It extends `jackson-bom`, augmenting with settings that are only/mostly relevant for Jackson components, but not to things that depend on Jackson in general.
133
+
Use of `jackson-base` is NOT recommended for libraries that are not meant to be coupled with Jackson
0 commit comments