1
+ import org.gradle.plugins.ide.eclipse.model.ProjectDependency
2
+
1
3
buildscript {
2
4
repositories {
3
5
maven { url ' http://repo.springsource.org/plugins-release' }
@@ -8,21 +10,22 @@ buildscript {
8
10
}
9
11
10
12
configure(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
+
11
19
apply plugin : ' java'
12
20
apply plugin : ' eclipse'
13
21
apply plugin : ' idea'
22
+ apply from : " ${ gradleScriptDir} /ide.gradle"
14
23
15
24
group = ' org.springframework'
16
25
17
26
sourceCompatibility= 1.5
18
27
targetCompatibility= 1.5
19
28
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
-
26
29
[compileJava, compileTestJava]* . options* . compilerArgs = [' -Xlint:none' ]
27
30
28
31
sourceSets. test. resources. srcDirs = [' src/test/resources' , ' src/test/java' ]
@@ -38,13 +41,6 @@ configure(allprojects) {
38
41
testCompile " org.hamcrest:hamcrest-all:1.3"
39
42
testCompile " org.easymock:easymock:2.5.1"
40
43
}
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
- }
48
44
}
49
45
50
46
configure(subprojects - project(" :spring-test" )) {
@@ -532,14 +528,17 @@ project('spring-webmvc-tiles3') {
532
528
compile(" javax.servlet:jstl:1.1.2" , provided)
533
529
compile(" javax.servlet.jsp:jsp-api:2.1" , provided)
534
530
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
+ }
536
535
compile(" org.apache.tiles:tiles-api:3.0.1" , optional)
537
536
compile(" org.apache.tiles:tiles-core:3.0.1" , optional)
538
537
compile(" org.apache.tiles:tiles-servlet:3.0.1" , optional)
539
538
compile(" org.apache.tiles:tiles-jsp:3.0.1" , optional)
540
539
compile(" org.apache.tiles:tiles-el:3.0.1" , optional)
541
540
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
543
542
}
544
543
}
545
544
@@ -593,6 +592,7 @@ project('spring-test-mvc') {
593
592
description = ' Spring Test MVC Framework'
594
593
ext. mergeIntoProject = project(' :spring-test' )
595
594
apply from : " ${ gradleScriptDir} /merge-artifacts.gradle"
595
+ apply from : " ide.gradle"
596
596
dependencies {
597
597
compile project(" :spring-context" )
598
598
compile project(" :spring-webmvc" )
0 commit comments