From ec1ce2dd4c8939ccb1b213452b75b5bd555ad66e Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 4 Jun 2014 18:17:49 +0100 Subject: [PATCH] Add explicit dependencies to make Gradle pull in the desired version Due to the lack of dependency management in Gradle a number of the starters were pulling in old versions of spring-tx (and in some cases spring-context-support as well) as the only dependency was a transitive one that pulled in an older version. This commit adds explicit dependencies on spring-context-support and spring-tx where appropriate. These dependencies will specify Boot's preferred version of Spring causing Gradle to do the right thing as it prefers the latest version of a dependency when there is more than one to choose from. Fixes #1028 --- .../spring-boot-starter-amqp/pom.xml | 10 ++++++++++ .../pom.xml | 10 ++++++++++ .../spring-boot-starter-data-gemfire/pom.xml | 20 +++++++++++++++++++ .../spring-boot-starter-data-mongodb/pom.xml | 10 ++++++++++ .../spring-boot-starter-data-rest/pom.xml | 10 ++++++++++ .../spring-boot-starter-data-solr/pom.xml | 10 ++++++++++ .../spring-boot-starter-redis/pom.xml | 20 +++++++++++++++++++ 7 files changed, 90 insertions(+) diff --git a/spring-boot-starters/spring-boot-starter-amqp/pom.xml b/spring-boot-starters/spring-boot-starter-amqp/pom.xml index 64d19f56c1..882041a925 100644 --- a/spring-boot-starters/spring-boot-starter-amqp/pom.xml +++ b/spring-boot-starters/spring-boot-starter-amqp/pom.xml @@ -18,6 +18,16 @@ ${basedir}/../.. + + org.springframework + spring-tx + + + commons-logging + commons-logging + + + org.springframework.amqp spring-rabbit diff --git a/spring-boot-starters/spring-boot-starter-data-elasticsearch/pom.xml b/spring-boot-starters/spring-boot-starter-data-elasticsearch/pom.xml index e3d5436af3..f65245a3fc 100644 --- a/spring-boot-starters/spring-boot-starter-data-elasticsearch/pom.xml +++ b/spring-boot-starters/spring-boot-starter-data-elasticsearch/pom.xml @@ -19,6 +19,16 @@ ${basedir}/../.. + + org.springframework + spring-tx + + + commons-logging + commons-logging + + + org.springframework.boot spring-boot-starter diff --git a/spring-boot-starters/spring-boot-starter-data-gemfire/pom.xml b/spring-boot-starters/spring-boot-starter-data-gemfire/pom.xml index ca1293540b..a2c3bc9191 100644 --- a/spring-boot-starters/spring-boot-starter-data-gemfire/pom.xml +++ b/spring-boot-starters/spring-boot-starter-data-gemfire/pom.xml @@ -23,6 +23,26 @@ com.gemstone.gemfire gemfire + + org.springframework + spring-context-support + + + commons-logging + commons-logging + + + + + org.springframework + spring-tx + + + commons-logging + commons-logging + + + org.springframework.boot spring-boot-starter diff --git a/spring-boot-starters/spring-boot-starter-data-mongodb/pom.xml b/spring-boot-starters/spring-boot-starter-data-mongodb/pom.xml index 443554347e..94895b8546 100644 --- a/spring-boot-starters/spring-boot-starter-data-mongodb/pom.xml +++ b/spring-boot-starters/spring-boot-starter-data-mongodb/pom.xml @@ -22,6 +22,16 @@ org.mongodb mongo-java-driver + + org.springframework + spring-tx + + + commons-logging + commons-logging + + + org.springframework.boot spring-boot-starter diff --git a/spring-boot-starters/spring-boot-starter-data-rest/pom.xml b/spring-boot-starters/spring-boot-starter-data-rest/pom.xml index c3da8ea146..ae48801246 100644 --- a/spring-boot-starters/spring-boot-starter-data-rest/pom.xml +++ b/spring-boot-starters/spring-boot-starter-data-rest/pom.xml @@ -26,6 +26,16 @@ com.fasterxml.jackson.core jackson-databind + + org.springframework + spring-tx + + + commons-logging + commons-logging + + + org.springframework.boot spring-boot-starter-web diff --git a/spring-boot-starters/spring-boot-starter-data-solr/pom.xml b/spring-boot-starters/spring-boot-starter-data-solr/pom.xml index 36ae5fc969..946b99eb6c 100644 --- a/spring-boot-starters/spring-boot-starter-data-solr/pom.xml +++ b/spring-boot-starters/spring-boot-starter-data-solr/pom.xml @@ -28,6 +28,16 @@ + + org.springframework + spring-tx + + + commons-logging + commons-logging + + + org.springframework.boot spring-boot-starter diff --git a/spring-boot-starters/spring-boot-starter-redis/pom.xml b/spring-boot-starters/spring-boot-starter-redis/pom.xml index 2cd9cf3a0b..18ae17d76e 100644 --- a/spring-boot-starters/spring-boot-starter-redis/pom.xml +++ b/spring-boot-starters/spring-boot-starter-redis/pom.xml @@ -18,6 +18,26 @@ ${basedir}/../.. + + org.springframework + spring-context-support + + + commons-logging + commons-logging + + + + + org.springframework + spring-tx + + + commons-logging + commons-logging + + + org.springframework.boot spring-boot-starter