Skip to content

Commit 1812df4

Browse files
committed
Remove classpath entries for anything used by the Gradle Wrapper
Otherwise, conflicting versions of Groovy dependencies end up on the classpath for the platform-tests project in Eclipse IDE.
1 parent ffe9f3d commit 1812df4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ eclipse {
5353
// Java Template Engine (JTE) which is used to generate the JRE enum and
5454
// dependent tests.
5555
entries.removeIf { it is ProjectDependency && it.path.equals("/code-generator-model") }
56+
// Remove classpath entries for anything used by the Gradle Wrapper.
57+
entries.removeIf { it is Library && it.path.contains("gradle/wrapper") }
5658
entries.filterIsInstance<SourceFolder>().forEach {
5759
it.excludes.add("**/module-info.java")
5860
}

0 commit comments

Comments
 (0)