From 0c376dd6942fcfbeb29d59530f0965a220a12a5e Mon Sep 17 00:00:00 2001 From: Gunnar Hillert Date: Fri, 23 Dec 2011 01:04:07 -0500 Subject: [PATCH] INT-2339 - Make spring-tx an explicit dependency for the Spring Integration MongoDb Module Also addresses: https://jira.springsource.org/browse/INT-2340 For reference see: https://jira.springsource.org/browse/INT-2339 --- build.gradle | 12 +++---- spring-integration-amqp/pom.xml | 30 +++++++----------- spring-integration-gemfire/pom.xml | 30 +++++++----------- spring-integration-jdbc/pom.xml | 50 +++++++++++++----------------- spring-integration-jms/pom.xml | 36 ++++++++++----------- spring-integration-mongodb/pom.xml | 36 ++++++++++----------- spring-integration-redis/pom.xml | 38 ++++++++++------------- 7 files changed, 103 insertions(+), 129 deletions(-) diff --git a/build.gradle b/build.gradle index afc7dca100..431f893084 100644 --- a/build.gradle +++ b/build.gradle @@ -175,7 +175,6 @@ project('spring-integration-amqp') { description = 'Spring Integration AMQP Support' dependencies { compile project(":spring-integration-core") - compile "org.springframework:spring-context:$springVersion" compile "org.springframework:spring-tx:$springVersion" compile("org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion") { optional = true } compile("org.springframework.amqp:spring-rabbit:$springAmqpVersion") { @@ -259,7 +258,6 @@ project('spring-integration-gemfire') { exclude group: 'org.springframework', module: 'spring-core' exclude group: 'org.springframework', module: 'spring-tx' } - compile "org.springframework:spring-context:$springVersion" compile "org.springframework:spring-tx:$springVersion" testCompile project(":spring-integration-stream") testCompile project(":spring-integration-test") @@ -313,7 +311,6 @@ project('spring-integration-jdbc') { dependencies { compile project(":spring-integration-core") compile "org.springframework:spring-aop:$springVersion" - compile "org.springframework:spring-context:$springVersion" compile "org.springframework:spring-jdbc:$springVersion" compile "org.springframework:spring-tx:$springVersion" testCompile project(":spring-integration-test") @@ -332,12 +329,14 @@ project('spring-integration-jms') { description = 'Spring Integration JMS Support' dependencies { compile project(":spring-integration-core") - compile "org.springframework:spring-context:$springVersion" compile "org.springframework:spring-jms:$springVersion" compile "org.springframework:spring-tx:$springVersion" compile ("org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1") { provided = true } testCompile project(":spring-integration-test") - testCompile "org.apache.activemq:activemq-core:5.3.0" + testCompile ("org.apache.activemq:activemq-core:5.3.0") { + exclude group: 'org.springframework', module: 'spring-context' + } + testCompile "org.springframework:spring-oxm:$springVersion" } } @@ -371,7 +370,7 @@ project('spring-integration-mongodb') { description = 'Spring Integration MongoDB Support' dependencies { compile project(":spring-integration-core") - compile "org.springframework:spring-context:$springVersion" + compile "org.springframework:spring-tx:$springVersion" compile("org.springframework.data:spring-data-mongodb:$springDataMongoVersion") { exclude group: 'org.springframework', module: 'spring-aop' exclude group: 'org.springframework', module: 'spring-asm' @@ -389,7 +388,6 @@ project('spring-integration-redis') { description = 'Spring Integration Redis Support' dependencies { compile project(":spring-integration-core") - compile "org.springframework:spring-context:$springVersion" compile "org.springframework:spring-tx:$springVersion" compile("org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion") compile("org.codehaus.jackson:jackson-core-asl:$jacksonVersion") diff --git a/spring-integration-amqp/pom.xml b/spring-integration-amqp/pom.xml index 20bb8e5989..b7297ce515 100644 --- a/spring-integration-amqp/pom.xml +++ b/spring-integration-amqp/pom.xml @@ -94,6 +94,12 @@ 3.0.7.RELEASE test + + org.springframework.integration + spring-integration-core + 2.1.0.BUILD-SNAPSHOT + compile + org.springframework.integration spring-integration-stream @@ -150,12 +156,6 @@ 1.2.12 test - - org.springframework - spring-context - 3.0.7.RELEASE - compile - org.easymock easymock @@ -175,6 +175,12 @@ compile true + + org.springframework.integration + spring-integration-test + 2.1.0.BUILD-SNAPSHOT + test + org.hamcrest hamcrest-all @@ -187,24 +193,12 @@ 1.8.4 test - - org.springframework.integration - spring-integration-test - 2.1.0.BUILD-SNAPSHOT - test - junit junit-dep 4.8.2 test - - org.springframework.integration - spring-integration-core - 2.1.0.BUILD-SNAPSHOT - compile - UTF8 diff --git a/spring-integration-gemfire/pom.xml b/spring-integration-gemfire/pom.xml index 92111cf0b6..0152026be4 100644 --- a/spring-integration-gemfire/pom.xml +++ b/spring-integration-gemfire/pom.xml @@ -98,6 +98,12 @@ 3.0.7.RELEASE test + + org.springframework.integration + spring-integration-core + 2.1.0.BUILD-SNAPSHOT + compile + org.springframework.integration spring-integration-stream @@ -142,12 +148,6 @@ 1.2.12 test - - org.springframework - spring-context - 3.0.7.RELEASE - compile - org.easymock easymock @@ -160,6 +160,12 @@ 2.3 test + + org.springframework.integration + spring-integration-test + 2.1.0.BUILD-SNAPSHOT + test + org.hamcrest hamcrest-all @@ -172,24 +178,12 @@ 1.8.4 test - - org.springframework.integration - spring-integration-test - 2.1.0.BUILD-SNAPSHOT - test - junit junit-dep 4.8.2 test - - org.springframework.integration - spring-integration-core - 2.1.0.BUILD-SNAPSHOT - compile - UTF8 diff --git a/spring-integration-jdbc/pom.xml b/spring-integration-jdbc/pom.xml index f623a90772..5a1376041f 100644 --- a/spring-integration-jdbc/pom.xml +++ b/spring-integration-jdbc/pom.xml @@ -104,6 +104,12 @@ 3.0.7.RELEASE test + + org.springframework.integration + spring-integration-core + 2.1.0.BUILD-SNAPSHOT + compile + org.springframework spring-aop @@ -111,9 +117,9 @@ compile - com.h2database - h2 - 1.3.160 + org.aspectj + aspectjweaver + 1.6.8 test @@ -123,9 +129,9 @@ test - org.aspectj - aspectjweaver - 1.6.8 + com.h2database + h2 + 1.3.160 test @@ -134,12 +140,6 @@ 3.0.7.RELEASE compile - - log4j - log4j - 1.2.12 - test - cglib cglib-nodep @@ -147,10 +147,10 @@ test - org.springframework - spring-context - 3.0.7.RELEASE - compile + log4j + log4j + 1.2.12 + test org.easymock @@ -164,6 +164,12 @@ 2.3 test + + org.springframework.integration + spring-integration-test + 2.1.0.BUILD-SNAPSHOT + test + org.hamcrest hamcrest-all @@ -182,12 +188,6 @@ 1.8.4 test - - org.springframework.integration - spring-integration-test - 2.1.0.BUILD-SNAPSHOT - test - org.aspectj aspectjrt @@ -200,12 +200,6 @@ 4.8.2 test - - org.springframework.integration - spring-integration-core - 2.1.0.BUILD-SNAPSHOT - compile - UTF8 diff --git a/spring-integration-jms/pom.xml b/spring-integration-jms/pom.xml index 92bb320d99..4d0e1e147a 100644 --- a/spring-integration-jms/pom.xml +++ b/spring-integration-jms/pom.xml @@ -93,6 +93,12 @@ activemq-core 5.3.0 test + + + spring-context + org.springframework + + org.springframework @@ -100,6 +106,12 @@ 3.0.7.RELEASE test + + org.springframework.integration + spring-integration-core + 2.1.0.BUILD-SNAPSHOT + compile + org.springframework spring-tx @@ -124,12 +136,6 @@ 1.2.12 test - - org.springframework - spring-context - 3.0.7.RELEASE - compile - org.easymock easymock @@ -148,6 +154,12 @@ 3.0.7.RELEASE test + + org.springframework.integration + spring-integration-test + 2.1.0.BUILD-SNAPSHOT + test + org.hamcrest hamcrest-all @@ -160,12 +172,6 @@ 1.8.4 test - - org.springframework.integration - spring-integration-test - 2.1.0.BUILD-SNAPSHOT - test - junit junit-dep @@ -178,12 +184,6 @@ 3.0.7.RELEASE compile - - org.springframework.integration - spring-integration-core - 2.1.0.BUILD-SNAPSHOT - compile - UTF8 diff --git a/spring-integration-mongodb/pom.xml b/spring-integration-mongodb/pom.xml index e3a05f3505..c539bf63fc 100644 --- a/spring-integration-mongodb/pom.xml +++ b/spring-integration-mongodb/pom.xml @@ -88,12 +88,6 @@ - - org.springframework - spring-context - 3.0.7.RELEASE - compile - org.easymock easymock @@ -106,36 +100,36 @@ 3.0.7.RELEASE test - - org.springframework.integration - spring-integration-test - 2.1.0.BUILD-SNAPSHOT - test - org.easymock easymockclassextension 2.3 test + + org.hamcrest + hamcrest-all + 1.1 + test + org.springframework.integration spring-integration-core 2.1.0.BUILD-SNAPSHOT compile - - org.hamcrest - hamcrest-all - 1.1 - test - org.mockito mockito-all 1.8.4 test + + org.springframework + spring-tx + 3.0.7.RELEASE + compile + log4j log4j @@ -190,6 +184,12 @@ 4.8.2 test + + org.springframework.integration + spring-integration-test + 2.1.0.BUILD-SNAPSHOT + test + UTF8 diff --git a/spring-integration-redis/pom.xml b/spring-integration-redis/pom.xml index cc945f2daf..ffa59d718c 100644 --- a/spring-integration-redis/pom.xml +++ b/spring-integration-redis/pom.xml @@ -94,18 +94,18 @@ 3.0.7.RELEASE test + + org.springframework.integration + spring-integration-core + 2.1.0.BUILD-SNAPSHOT + compile + org.springframework spring-tx 3.0.7.RELEASE compile - - log4j - log4j - 1.2.12 - test - org.codehaus.jackson jackson-core-asl @@ -119,10 +119,10 @@ test - org.springframework - spring-context - 3.0.7.RELEASE - compile + log4j + log4j + 1.2.12 + test org.easymock @@ -166,6 +166,12 @@ 1.8.3 compile + + org.springframework.integration + spring-integration-test + 2.1.0.BUILD-SNAPSHOT + test + org.hamcrest hamcrest-all @@ -178,24 +184,12 @@ 1.8.4 test - - org.springframework.integration - spring-integration-test - 2.1.0.BUILD-SNAPSHOT - test - junit junit-dep 4.8.2 test - - org.springframework.integration - spring-integration-core - 2.1.0.BUILD-SNAPSHOT - compile - UTF8