From 4bc5535c37afe8e72bfe666ec549d15a303f2d23 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 17 Aug 2018 10:28:36 +0200 Subject: [PATCH] Rework "Remove redundant spring-boot-starter dependency" This commit reworks 40d8726 as it has introduced an unfortunate side effect for those who are using a starter with optional starter dependencies. `spring-boot-starter-web` defines the json and the tomcat starter. The latter is part of a set of starters that do not bring the base starter and the former can be excluded to use gson rather than jackson. When such arrangement happens, spring-boot-starter-web no longer defines the base starter (and therefore doesn't bring the core dependencies that Spring Boot needs to bootstrap). This commit reviews the starters that define optional starters and reintroduce the base starter. Closes gh-14076 --- .../spring-boot-starter-batch/pom.xml | 4 ++++ .../spring-boot-starter-web-services/pom.xml | 8 ++++---- .../spring-boot-starters/spring-boot-starter-web/pom.xml | 4 ++++ .../spring-boot-starter-webflux/pom.xml | 4 ++++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-batch/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-batch/pom.xml index 12ab2a5180..0b6a8a2328 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-batch/pom.xml +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-batch/pom.xml @@ -14,6 +14,10 @@ ${basedir}/../../.. + + org.springframework.boot + spring-boot-starter + org.springframework.boot spring-boot-starter-jdbc diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-web-services/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-web-services/pom.xml index 9d14391a12..ed6970ba70 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-web-services/pom.xml +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-web-services/pom.xml @@ -14,6 +14,10 @@ ${basedir}/../../.. + + org.springframework.boot + spring-boot-starter-web + com.sun.xml.messaging.saaj saaj-impl @@ -22,10 +26,6 @@ javax.xml.ws jaxws-api - - org.springframework.boot - spring-boot-starter-web - org.springframework spring-oxm diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml index 4ef754c71e..86318fe01d 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-web/pom.xml @@ -15,6 +15,10 @@ ${basedir}/../../.. + + org.springframework.boot + spring-boot-starter + org.springframework.boot spring-boot-starter-json diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-webflux/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-webflux/pom.xml index 49d7ae6705..947b4dac0f 100644 --- a/spring-boot-project/spring-boot-starters/spring-boot-starter-webflux/pom.xml +++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-webflux/pom.xml @@ -15,6 +15,10 @@ ${basedir}/../../.. + + org.springframework.boot + spring-boot-starter + org.springframework.boot spring-boot-starter-json