|
|
|
@ -8,7 +8,7 @@ buildscript { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
configure(allprojects) { |
|
|
|
configure(allprojects) { project -> |
|
|
|
ext.aspectjVersion = "1.7.1" |
|
|
|
ext.aspectjVersion = "1.7.1" |
|
|
|
ext.easymockVersion = "2.5.2" |
|
|
|
ext.easymockVersion = "2.5.2" |
|
|
|
ext.hsqldbVersion = "1.8.0.10" |
|
|
|
ext.hsqldbVersion = "1.8.0.10" |
|
|
|
@ -28,6 +28,7 @@ configure(allprojects) { |
|
|
|
apply plugin: "java" |
|
|
|
apply plugin: "java" |
|
|
|
apply plugin: "propdeps-eclipse" |
|
|
|
apply plugin: "propdeps-eclipse" |
|
|
|
apply plugin: "propdeps-idea" |
|
|
|
apply plugin: "propdeps-idea" |
|
|
|
|
|
|
|
apply plugin: "test-source-set-dependencies" |
|
|
|
apply from: "${gradleScriptDir}/ide.gradle" |
|
|
|
apply from: "${gradleScriptDir}/ide.gradle" |
|
|
|
|
|
|
|
|
|
|
|
group = "org.springframework" |
|
|
|
group = "org.springframework" |
|
|
|
@ -64,17 +65,26 @@ configure(allprojects) { |
|
|
|
|
|
|
|
|
|
|
|
sourceSets.test.resources.srcDirs = ["src/test/resources", "src/test/java"] |
|
|
|
sourceSets.test.resources.srcDirs = ["src/test/resources", "src/test/java"] |
|
|
|
|
|
|
|
|
|
|
|
test.systemProperty("java.awt.headless", "true") |
|
|
|
test { |
|
|
|
|
|
|
|
systemProperty("java.awt.headless", "true") |
|
|
|
|
|
|
|
systemProperty("testGroups", properties.get("testGroups")) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
repositories { |
|
|
|
repositories { |
|
|
|
maven { url "http://repo.springsource.org/libs-release" } |
|
|
|
maven { url "http://repo.springsource.org/libs-release" } |
|
|
|
maven { url "http://repo.springsource.org/ebr-maven-external" } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
|
dependencies { |
|
|
|
testCompile("junit:junit:${junitVersion}") |
|
|
|
testCompile("junit:junit:${junitVersion}") |
|
|
|
testCompile("org.hamcrest:hamcrest-all:1.3") |
|
|
|
testCompile("org.hamcrest:hamcrest-all:1.3") |
|
|
|
testCompile("org.mockito:mockito-core:1.9.5") |
|
|
|
testCompile("org.mockito:mockito-core:1.9.5") |
|
|
|
|
|
|
|
if (project.name in ["spring", "spring-jms", "spring-orm", |
|
|
|
|
|
|
|
"spring-orm-hibernate4", "spring-oxm", "spring-struts", |
|
|
|
|
|
|
|
"spring-test", "spring-test-mvc", "spring-tx", "spring-web", |
|
|
|
|
|
|
|
"spring-webmvc", "spring-webmvc-portlet", "spring-webmvc-tiles3"]) { |
|
|
|
|
|
|
|
testCompile("org.easymock:easymock:${easymockVersion}") |
|
|
|
|
|
|
|
testCompile "org.easymock:easymockclassextension:${easymockVersion}" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ext.javadocLinks = [ |
|
|
|
ext.javadocLinks = [ |
|
|
|
@ -100,17 +110,7 @@ configure(allprojects) { |
|
|
|
] as String[] |
|
|
|
] as String[] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
configure(allprojects.findAll{it.name in ["spring", "spring-jms", "spring-orm", |
|
|
|
configure(subprojects - project(":spring-build-src")) { subproject -> |
|
|
|
"spring-orm-hibernate4", "spring-oxm", "spring-struts", "spring-test", |
|
|
|
|
|
|
|
"spring-test-mvc", "spring-tx", "spring-web", "spring-webmvc", |
|
|
|
|
|
|
|
"spring-webmvc-portlet", "spring-webmvc-tiles3"]}) { |
|
|
|
|
|
|
|
dependencies { |
|
|
|
|
|
|
|
testCompile("org.easymock:easymock:${easymockVersion}") |
|
|
|
|
|
|
|
testCompile "org.easymock:easymockclassextension:${easymockVersion}" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configure(subprojects - project(":spring-build-junit")) { subproject -> |
|
|
|
|
|
|
|
apply plugin: "merge" |
|
|
|
apply plugin: "merge" |
|
|
|
apply from: "${gradleScriptDir}/publish-maven.gradle" |
|
|
|
apply from: "${gradleScriptDir}/publish-maven.gradle" |
|
|
|
|
|
|
|
|
|
|
|
@ -159,35 +159,18 @@ configure(subprojects - project(":spring-build-junit")) { subproject -> |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
configure(allprojects - project(":spring-build-junit")) { |
|
|
|
project("spring-build-src") { |
|
|
|
dependencies { |
|
|
|
description = "Exposes gradle buildSrc for IDE support" |
|
|
|
testCompile(project(":spring-build-junit")) |
|
|
|
apply plugin: "groovy" |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eclipse.classpath.file.whenMerged { classpath -> |
|
|
|
|
|
|
|
classpath.entries.find{it.path == "/spring-build-junit"}.exported = false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test.systemProperties.put("testGroups", properties.get("testGroups")) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
project("spring-build-junit") { |
|
|
|
|
|
|
|
description = "Build-time JUnit dependencies and utilities" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This is an internal project and is not published. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
|
dependencies { |
|
|
|
compile("commons-logging:commons-logging:1.1.1") |
|
|
|
compile gradleApi() |
|
|
|
compile("junit:junit:${junitVersion}") |
|
|
|
groovy localGroovy() |
|
|
|
compile("org.hamcrest:hamcrest-all:1.3") |
|
|
|
|
|
|
|
compile("org.easymock:easymock:${easymockVersion}") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Don't actually generate any artifacts |
|
|
|
|
|
|
|
configurations.archives.artifacts.clear() |
|
|
|
configurations.archives.artifacts.clear() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
project("spring-core") { |
|
|
|
project("spring-core") { |
|
|
|
description = "Spring Core" |
|
|
|
description = "Spring Core" |
|
|
|
|
|
|
|
|
|
|
|
@ -258,7 +241,7 @@ project("spring-core") { |
|
|
|
optional("org.aspectj:aspectjweaver:${aspectjVersion}") |
|
|
|
optional("org.aspectj:aspectjweaver:${aspectjVersion}") |
|
|
|
optional("net.sf.jopt-simple:jopt-simple:3.0") |
|
|
|
optional("net.sf.jopt-simple:jopt-simple:3.0") |
|
|
|
optional("log4j:log4j:1.2.17") |
|
|
|
optional("log4j:log4j:1.2.17") |
|
|
|
testCompile("xmlunit:xmlunit:1.2") |
|
|
|
testCompile("xmlunit:xmlunit:1.3") |
|
|
|
testCompile("org.codehaus.woodstox:wstx-asl:3.2.7") |
|
|
|
testCompile("org.codehaus.woodstox:wstx-asl:3.2.7") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -348,7 +331,7 @@ project("spring-context") { |
|
|
|
optional("org.aspectj:aspectjweaver:${aspectjVersion}") |
|
|
|
optional("org.aspectj:aspectjweaver:${aspectjVersion}") |
|
|
|
optional("org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1") |
|
|
|
optional("org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1") |
|
|
|
testCompile("commons-dbcp:commons-dbcp:1.2.2") |
|
|
|
testCompile("commons-dbcp:commons-dbcp:1.2.2") |
|
|
|
testCompile("javax.inject:com.springsource.org.atinject.tck:1.0.0") |
|
|
|
testCompile("javax.inject:javax.inject-tck:1") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
test { |
|
|
|
test { |
|
|
|
@ -395,7 +378,7 @@ project("spring-oxm") { |
|
|
|
optional("org.apache.xmlbeans:xmlbeans:2.4.0") |
|
|
|
optional("org.apache.xmlbeans:xmlbeans:2.4.0") |
|
|
|
optional("org.codehaus.castor:castor-xml:1.3.2") |
|
|
|
optional("org.codehaus.castor:castor-xml:1.3.2") |
|
|
|
testCompile("org.codehaus.jettison:jettison:1.0.1") |
|
|
|
testCompile("org.codehaus.jettison:jettison:1.0.1") |
|
|
|
testCompile("xmlunit:xmlunit:1.2") |
|
|
|
testCompile("xmlunit:xmlunit:1.3") |
|
|
|
testCompile("xmlpull:xmlpull:1.1.3.4a") |
|
|
|
testCompile("xmlpull:xmlpull:1.1.3.4a") |
|
|
|
testCompile(files(genCastor.classesDir).builtBy(genCastor)) |
|
|
|
testCompile(files(genCastor.classesDir).builtBy(genCastor)) |
|
|
|
testCompile(files(genJaxb.classesDir).builtBy(genJaxb)) |
|
|
|
testCompile(files(genJaxb.classesDir).builtBy(genJaxb)) |
|
|
|
@ -500,7 +483,7 @@ project("spring-web") { |
|
|
|
} |
|
|
|
} |
|
|
|
optional("log4j:log4j:1.2.17") |
|
|
|
optional("log4j:log4j:1.2.17") |
|
|
|
testCompile(project(":spring-context-support")) // for JafMediaTypeFactory |
|
|
|
testCompile(project(":spring-context-support")) // for JafMediaTypeFactory |
|
|
|
testCompile("xmlunit:xmlunit:1.2") |
|
|
|
testCompile("xmlunit:xmlunit:1.3") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// pick up ContextLoader.properties in src/main |
|
|
|
// pick up ContextLoader.properties in src/main |
|
|
|
@ -536,7 +519,6 @@ project("spring-orm") { |
|
|
|
testCompile("org.eclipse.persistence:org.eclipse.persistence.asm:1.0.1") |
|
|
|
testCompile("org.eclipse.persistence:org.eclipse.persistence.asm:1.0.1") |
|
|
|
testCompile("org.eclipse.persistence:org.eclipse.persistence.antlr:1.0.1") |
|
|
|
testCompile("org.eclipse.persistence:org.eclipse.persistence.antlr:1.0.1") |
|
|
|
testCompile("hsqldb:hsqldb:${hsqldbVersion}") |
|
|
|
testCompile("hsqldb:hsqldb:${hsqldbVersion}") |
|
|
|
testCompile(project(":spring-web").sourceSets.test.output) |
|
|
|
|
|
|
|
compile(project(":spring-core")) |
|
|
|
compile(project(":spring-core")) |
|
|
|
compile(project(":spring-beans")) |
|
|
|
compile(project(":spring-beans")) |
|
|
|
optional(project(":spring-aop")) |
|
|
|
optional(project(":spring-aop")) |
|
|
|
@ -592,7 +574,7 @@ project("spring-webmvc") { |
|
|
|
testCompile(project(":spring-aop")) |
|
|
|
testCompile(project(":spring-aop")) |
|
|
|
testCompile("org.slf4j:slf4j-jcl:${slf4jVersion}") |
|
|
|
testCompile("org.slf4j:slf4j-jcl:${slf4jVersion}") |
|
|
|
testCompile("rhino:js:1.7R1") |
|
|
|
testCompile("rhino:js:1.7R1") |
|
|
|
testCompile("xmlunit:xmlunit:1.2") |
|
|
|
testCompile("xmlunit:xmlunit:1.3") |
|
|
|
testCompile("dom4j:dom4j:1.6.1") { |
|
|
|
testCompile("dom4j:dom4j:1.6.1") { |
|
|
|
exclude group: "xml-apis", module: "xml-apis" |
|
|
|
exclude group: "xml-apis", module: "xml-apis" |
|
|
|
} |
|
|
|
} |
|
|
|
@ -701,7 +683,7 @@ project("spring-test-mvc") { |
|
|
|
provided("javax.servlet:javax.servlet-api:3.0.1") |
|
|
|
provided("javax.servlet:javax.servlet-api:3.0.1") |
|
|
|
optional("org.hamcrest:hamcrest-core:1.3") |
|
|
|
optional("org.hamcrest:hamcrest-core:1.3") |
|
|
|
optional("com.jayway.jsonpath:json-path:0.8.1") |
|
|
|
optional("com.jayway.jsonpath:json-path:0.8.1") |
|
|
|
optional("xmlunit:xmlunit:1.2") |
|
|
|
optional("xmlunit:xmlunit:1.3") |
|
|
|
testCompile("org.slf4j:slf4j-jcl:${slf4jVersion}") |
|
|
|
testCompile("org.slf4j:slf4j-jcl:${slf4jVersion}") |
|
|
|
testCompile("javax.servlet:jstl:1.2") |
|
|
|
testCompile("javax.servlet:jstl:1.2") |
|
|
|
testCompile("org.hibernate:hibernate-validator:4.3.0.Final") |
|
|
|
testCompile("org.hibernate:hibernate-validator:4.3.0.Final") |
|
|
|
@ -786,6 +768,7 @@ configure(rootProject) { |
|
|
|
|
|
|
|
|
|
|
|
dependencies { // for integration tests |
|
|
|
dependencies { // for integration tests |
|
|
|
testCompile(project(":spring-core")) |
|
|
|
testCompile(project(":spring-core")) |
|
|
|
|
|
|
|
testCompile(project(":spring-core").sourceSets.test.output) |
|
|
|
testCompile(project(":spring-beans")) |
|
|
|
testCompile(project(":spring-beans")) |
|
|
|
testCompile(project(":spring-aop")) |
|
|
|
testCompile(project(":spring-aop")) |
|
|
|
testCompile(project(":spring-expression")) |
|
|
|
testCompile(project(":spring-expression")) |
|
|
|
|