Refactored the Spring dependencies in the build.gradle file to 'exclude' the commons-logging transitive dependency properly.

This commit is contained in:
John Blum
2014-04-03 13:04:23 -07:00
parent 3443833df3
commit 2599548ae8

View File

@@ -42,37 +42,43 @@ dependencies {
// Spring Framework
compile("org.springframework:spring-core:$springVersion") {
exclude module: "commons-logging"
exclude group: "commons-logging", module: "commons-logging"
}
compile("org.springframework:spring-aop:$springVersion") {
exclude group: "commons-logging", module: "commons-logging"
}
compile("org.springframework:spring-context-support:$springVersion") {
exclude group: "commons-logging", module: "commons-logging"
}
compile("org.springframework:spring-tx:$springVersion") {
exclude group: "commons-logging", module: "commons-logging"
}
// Spring Data
compile("org.springframework.data:spring-data-commons:${springDataCommonsVersion}") {
exclude group: "commons-logging", module: "commons-logging"
}
compile "org.springframework:spring-context-support:$springVersion"
compile "org.springframework:spring-tx:$springVersion"
compile "org.springframework:spring-aop:$springVersion"
compile 'org.aspectj:aspectjweaver:1.7.2'
compile 'org.aspectj:aspectjrt:1.7.2'
compile 'org.codehaus.jackson:jackson-core-asl:1.9.12'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.12'
// GemFire
compile("com.gemstone.gemfire:gemfire:$gemfireVersion")
runtime("antlr:antlr:2.7.7")
runtime("commons-modeler:commons-modeler:2.0.1")
compile 'org.aspectj:aspectjrt:1.7.2'
compile 'org.aspectj:aspectjweaver:1.7.2'
compile 'org.codehaus.jackson:jackson-core-asl:1.9.12'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.12'
// Testing
testCompile "org.mockito:mockito-core:$mockitoVersion"
testCompile "org.springframework:spring-test:$springVersion"
testCompile("org.springframework:spring-test:$springVersion") {
exclude group: "commons-logging", module: "commons-logging"
}
testCompile "junit:junit-dep:$junitVersion"
testCompile "org.mockito:mockito-core:$mockitoVersion"
testCompile "cglib:cglib:${cglibVersion}"
testCompile "org.hamcrest:hamcrest-core:$hamcrestVersion"
testCompile "org.hamcrest:hamcrest-library:$hamcrestVersion"
testCompile "javax.annotation:jsr250-api:1.0", optional
// Spring Data
compile "org.springframework.data:spring-data-commons:${springDataCommonsVersion}"
//
testCompile "cglib:cglib:${cglibVersion}"
testCompile "org.apache.derby:derbyLocale_zh_TW:10.9.1.0"
testCompile "org.apache.derby:derbyLocale_zh_TW:10.9.1.0"
}
sourceCompatibility = 1.6