From 0fb0eb6e5b5a27843f41e4cb82ea01f43168d643 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 23 Aug 2019 11:17:33 +0100 Subject: [PATCH] Deprecate jackson.version in favour of new jackson-bom.version The versions of Jackon's bom and the versions of Jackson are often not the same. For example, at the time of writing, the latest bom version is 2.9.9.20190807 but the latest version of Jackson's core is 2.9.9 and the latest version of Jackson's databind is 2.9.9.3. spring-boot-dependencies using a property, jackson.version, to control the version of jackson-bom that is imported. To make it clear that the version property controls the version of Jackson's bom and not of Jackson itself, this commit deprecates jackson.version in favour of a new jackson-bom.version property. An additional benefit of this change is that it addresses a problem when using Gradle and the dependency management plugin. Jackson's bom uses a jackson.version property to control the version of core Jackson modules. This names clashes with the name of the property used by spring-boot-dependencies. Specifying a custom jackson.version to control the version of the bom that is imported would also have the unwanted side-effect of customizing the version of the core Jackson modules declared in Jackson's bom. Fixes gh-17808 --- spring-boot-project/spring-boot-dependencies/pom.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-dependencies/pom.xml b/spring-boot-project/spring-boot-dependencies/pom.xml index 7d9a2ce55f..72aef544ac 100644 --- a/spring-boot-project/spring-boot-dependencies/pom.xml +++ b/spring-boot-project/spring-boot-dependencies/pom.xml @@ -81,7 +81,9 @@ 4.4.11 9.4.15.Final 2.14 + 2.9.9.20190807 + ${jackson.version} 3.0.15 1.2.0 1.3.2 @@ -621,7 +623,7 @@ com.fasterxml.jackson jackson-bom - ${jackson.version} + ${jackson-bom.version} import pom