Skip to content

Commit e7b8cd5

Browse files
rwinchcbeams
authored andcommitted
Fix spring-test-mvc Eclipse classpath
1 parent 2ef99cd commit e7b8cd5

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,14 +532,17 @@ project('spring-webmvc-tiles3') {
532532
compile("javax.servlet:jstl:1.1.2", provided)
533533
compile("javax.servlet.jsp:jsp-api:2.1", provided)
534534
compile("org.apache.tiles:tiles-request-api:1.0.1", optional)
535-
compile("org.apache.tiles:tiles-request-servlet-wildcard:1.0.1", optional)
535+
compile("org.apache.tiles:tiles-request-servlet-wildcard:1.0.1") { dep->
536+
optional dep
537+
exclude group: 'org.springframework', module: 'spring-web'
538+
}
536539
compile("org.apache.tiles:tiles-api:3.0.1", optional)
537540
compile("org.apache.tiles:tiles-core:3.0.1", optional)
538541
compile("org.apache.tiles:tiles-servlet:3.0.1", optional)
539542
compile("org.apache.tiles:tiles-jsp:3.0.1", optional)
540543
compile("org.apache.tiles:tiles-el:3.0.1", optional)
541544
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
545+
compile project(":spring-web").sourceSets*.output // mock request & response
543546
}
544547
}
545548

@@ -593,6 +596,7 @@ project('spring-test-mvc') {
593596
description = 'Spring Test MVC Framework'
594597
ext.mergeIntoProject = project(':spring-test')
595598
apply from: "${gradleScriptDir}/merge-artifacts.gradle"
599+
apply from: "ide.gradle"
596600
dependencies {
597601
compile project(":spring-context")
598602
compile project(":spring-webmvc")

spring-test-mvc/ide.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import org.gradle.plugins.ide.eclipse.model.ProjectDependency
2+
3+
// SPR-10042
4+
eclipse.classpath.file.whenMerged { classpath ->
5+
def projectName = 'spring-webmvc-tiles3'
6+
classpath.entries.add(0, new ProjectDependency("/${projectName}", project(":${projectName}").path))
7+
}

0 commit comments

Comments
 (0)