1+ import org.gradle.plugins.ide.eclipse.model.ProjectDependency
2+
13buildscript {
24 repositories {
35 maven { url ' http://repo.springsource.org/plugins-release' }
@@ -8,21 +10,22 @@ buildscript {
810}
911
1012configure(allprojects) {
13+ ext. aspectjVersion = ' 1.6.12'
14+ ext. hsqldbVersion= ' 1.8.0.10'
15+ ext. junitVersion = ' 4.11.20120805.1225' // temporary use of snapshot; spring-test
16+ // still builds against on 4.10
17+ ext. gradleScriptDir = " ${ rootProject.projectDir} /gradle"
18+
1119 apply plugin : ' java'
1220 apply plugin : ' eclipse'
1321 apply plugin : ' idea'
22+ apply from : " ${ gradleScriptDir} /ide.gradle"
1423
1524 group = ' org.springframework'
1625
1726 sourceCompatibility= 1.5
1827 targetCompatibility= 1.5
1928
20- ext. aspectjVersion = ' 1.6.12'
21- ext. hsqldbVersion= ' 1.8.0.10'
22- ext. junitVersion = ' 4.11.20120805.1225' // temporary use of snapshot; spring-test
23- // still builds against on 4.10
24- ext. gradleScriptDir = " ${ rootProject.projectDir} /gradle"
25-
2629 [compileJava, compileTestJava]* . options* . compilerArgs = [' -Xlint:none' ]
2730
2831 sourceSets. test. resources. srcDirs = [' src/test/resources' , ' src/test/java' ]
@@ -38,13 +41,6 @@ configure(allprojects) {
3841 testCompile " org.hamcrest:hamcrest-all:1.3"
3942 testCompile " org.easymock:easymock:2.5.1"
4043 }
41-
42- // servlet-api (2.5) and tomcat-servlet-api (3.0) classpath entries should not be
43- // exported to dependent projects in Eclipse to avoid false compilation errors due
44- // to changing APIs across these versions
45- eclipse. classpath. file. whenMerged { classpath ->
46- classpath. entries. findAll { entry -> entry. path. contains(' servlet-api' ) }* . exported = false
47- }
4844}
4945
5046configure(subprojects - project(" :spring-test" )) {
@@ -532,14 +528,17 @@ project('spring-webmvc-tiles3') {
532528 compile(" javax.servlet:jstl:1.1.2" , provided)
533529 compile(" javax.servlet.jsp:jsp-api:2.1" , provided)
534530 compile(" org.apache.tiles:tiles-request-api:1.0.1" , optional)
535- compile(" org.apache.tiles:tiles-request-servlet-wildcard:1.0.1" , optional)
531+ compile(" org.apache.tiles:tiles-request-servlet-wildcard:1.0.1" ) { dep ->
532+ optional dep
533+ exclude group : ' org.springframework' , module : ' spring-web'
534+ }
536535 compile(" org.apache.tiles:tiles-api:3.0.1" , optional)
537536 compile(" org.apache.tiles:tiles-core:3.0.1" , optional)
538537 compile(" org.apache.tiles:tiles-servlet:3.0.1" , optional)
539538 compile(" org.apache.tiles:tiles-jsp:3.0.1" , optional)
540539 compile(" org.apache.tiles:tiles-el:3.0.1" , optional)
541540 compile(" org.apache.tomcat:tomcat-servlet-api:7.0.32" , provided) // servlet-api 3.0
542- testCompile project(" :spring-web" ). sourceSets* . output // mock request & response
541+ compile project(" :spring-web" ). sourceSets* . output // mock request & response
543542 }
544543}
545544
@@ -593,6 +592,7 @@ project('spring-test-mvc') {
593592 description = ' Spring Test MVC Framework'
594593 ext. mergeIntoProject = project(' :spring-test' )
595594 apply from : " ${ gradleScriptDir} /merge-artifacts.gradle"
595+ apply from : " ide.gradle"
596596 dependencies {
597597 compile project(" :spring-context" )
598598 compile project(" :spring-webmvc" )
0 commit comments