Skip to content

Commit e303536

Browse files
committed
Maintenance version updates, excludes for overlapping dependencies (PR #499)
1 parent e92bbc8 commit e303536

File tree

1 file changed

+48
-17
lines changed

1 file changed

+48
-17
lines changed

build.gradle

Lines changed: 48 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ configure(allprojects) { project ->
1616
ext.aspectjVersion = "1.7.4"
1717
ext.groovyVersion = "1.8.9"
1818
ext.hibernate3Version = "3.6.10.Final"
19-
ext.hibernate4Version = "4.2.10.Final"
19+
ext.hibernate4Version = "4.2.11.Final"
2020
ext.hibValVersion = "4.3.1.Final"
21-
ext.hsqldbVersion = "2.3.1"
21+
ext.hsqldbVersion = "2.3.2"
2222
ext.jackson1Version = "1.9.13"
2323
ext.jackson2Version = "2.3.1"
2424
ext.jasperReportsVersion = "5.5.1"
2525
ext.jettyVersion = "9.1.3.v20140225"
2626
ext.jodaVersion = "2.3"
2727
ext.junitVersion = "4.11"
28-
ext.slf4jVersion = "1.7.5"
28+
ext.slf4jVersion = "1.7.6"
2929
ext.tiles2Version = "2.2.2"
3030
ext.tiles3Version = "3.0.3"
31-
ext.xstreamVersion = "1.4.6"
31+
ext.xstreamVersion = "1.4.7"
3232

3333
ext.gradleScriptDir = "${rootProject.projectDir}/gradle"
3434

@@ -82,9 +82,13 @@ configure(allprojects) { project ->
8282
}
8383

8484
dependencies {
85-
testCompile("junit:junit:${junitVersion}")
85+
testCompile("junit:junit:${junitVersion}") {
86+
exclude group:'org.hamcrest', module:'hamcrest-core'
87+
}
88+
testCompile("org.mockito:mockito-core:1.9.5") {
89+
exclude group:'org.hamcrest', module:'hamcrest-core'
90+
}
8691
testCompile("org.hamcrest:hamcrest-all:1.3")
87-
testCompile("org.mockito:mockito-core:1.9.5")
8892
}
8993

9094
ext.javadocLinks = [
@@ -454,14 +458,23 @@ project("spring-oxm") {
454458
dependencies {
455459
compile(project(":spring-beans"))
456460
compile(project(":spring-core"))
457-
optional("com.thoughtworks.xstream:xstream:${xstreamVersion}")
461+
optional("org.codehaus.castor:castor-xml:1.3.2") {
462+
exclude group: 'stax', module: 'stax-api'
463+
}
464+
optional("org.apache.xmlbeans:xmlbeans:2.6.0") {
465+
exclude group: 'stax', module: 'stax-api'
466+
}
467+
optional("com.thoughtworks.xstream:xstream:${xstreamVersion}") {
468+
exclude group: 'xpp3', module: 'xpp3_min'
469+
exclude group: 'xmlpull', module: 'xmlpull'
470+
}
458471
optional("org.jibx:jibx-run:1.2.5")
459-
optional("org.apache.xmlbeans:xmlbeans:2.6.0")
460-
optional("org.codehaus.castor:castor-xml:1.3.2")
461472
testCompile(project(":spring-context"))
462-
testCompile("org.codehaus.jettison:jettison:1.0.1")
463473
testCompile("xmlunit:xmlunit:1.5")
464-
testCompile("xmlpull:xmlpull:1.1.3.4a")
474+
testCompile("xpp3:xpp3:1.1.3.4.O")
475+
testCompile("org.codehaus.jettison:jettison:1.0.1") {
476+
exclude group: 'stax', module: 'stax-api'
477+
}
465478
testCompile(files(genCastor.classesDir).builtBy(genCastor))
466479
testCompile(files(genJaxb.classesDir).builtBy(genJaxb))
467480
testCompile(files(genXmlbeans.classesDir).builtBy(genXmlbeans))
@@ -602,6 +615,7 @@ project("spring-websocket") {
602615
optional("io.undertow:undertow-core:1.0.0.Final")
603616
optional("io.undertow:undertow-servlet:1.0.0.Final") {
604617
exclude group: "org.jboss.spec.javax.servlet", module: "jboss-servlet-api_3.1_spec"
618+
exclude group: "org.jboss.spec.javax.annotation", module: "jboss-annotations-api_1.2_spec"
605619
}
606620
optional("io.undertow:undertow-websockets-jsr:1.0.0.Final") {
607621
exclude group: "org.jboss.spec.javax.websocket", module: "jboss-websocket-api_1.0_spec"
@@ -631,11 +645,25 @@ project("spring-orm") {
631645
optional("aopalliance:aopalliance:1.0")
632646
optional("org.eclipse.persistence:javax.persistence:2.0.0")
633647
optional("org.eclipse.persistence:org.eclipse.persistence.core:2.4.0")
634-
optional("org.eclipse.persistence:org.eclipse.persistence.jpa:2.4.0")
635-
optional("org.hibernate:hibernate-core:${hibernate3Version}")
636-
optional("org.hibernate:hibernate-entitymanager:${hibernate3Version}")
637-
optional("org.apache.openjpa:openjpa:2.2.1")
638-
optional("javax.jdo:jdo-api:3.0")
648+
optional("org.eclipse.persistence:org.eclipse.persistence.jpa:2.4.0") {
649+
exclude group: 'org.eclipse.persistence', module: 'javax.persistence'
650+
}
651+
optional("org.hibernate:hibernate-core:${hibernate3Version}") {
652+
exclude group: 'org.hibernate.javax.persistence', module: 'hibernate-jpa-2.0-api'
653+
exclude group: 'javax.transaction', module: 'jta'
654+
}
655+
optional("org.hibernate:hibernate-entitymanager:${hibernate3Version}") {
656+
exclude group: 'org.hibernate.javax.persistence', module: 'hibernate-jpa-2.0-api'
657+
}
658+
optional("org.apache.openjpa:openjpa:2.2.1") {
659+
exclude group: 'junit', module: 'junit'
660+
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-jpa_2.0_spec'
661+
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-jta_1.1_spec'
662+
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-jms_1.1_spec'
663+
}
664+
optional("javax.jdo:jdo-api:3.0") {
665+
exclude group: 'javax.transaction', module: 'transaction-api'
666+
}
639667
optional("javax.servlet:javax.servlet-api:3.0.1")
640668
testCompile("commons-dbcp:commons-dbcp:1.4")
641669
testCompile("org.hsqldb:hsqldb:${hsqldbVersion}")
@@ -699,6 +727,7 @@ project("spring-webmvc") {
699727
}
700728
optional("org.apache.tiles:tiles-extras:${tiles2Version}") {
701729
exclude group: "org.slf4j", module: "jcl-over-slf4j"
730+
exclude group: "org.apache.velocity", module: "velocity-tools"
702731
exclude group: "org.springframework", module: "spring-web"
703732
}
704733
testCompile(project(":spring-aop"))
@@ -812,7 +841,9 @@ project("spring-test") {
812841
testCompile(project(":spring-webmvc-tiles3"))
813842
testCompile("javax.mail:mail:1.4.7")
814843
testCompile("javax.ejb:ejb-api:3.0")
815-
testCompile("org.hibernate:hibernate-core:${hibernate3Version}")
844+
testCompile("org.hibernate:hibernate-core:${hibernate3Version}") {
845+
exclude group: 'org.hibernate.javax.persistence', module: 'hibernate-jpa-2.0-api'
846+
}
816847
testCompile("org.hibernate:hibernate-entitymanager:${hibernate3Version}")
817848
testCompile("org.hibernate:hibernate-validator:${hibValVersion}")
818849
testCompile("com.thoughtworks.xstream:xstream:${xstreamVersion}")

0 commit comments

Comments
 (0)