Skip to content

Commit eb8c82a

Browse files
authored
Work around reported problem in eclipse (#31960)
The Gradle plugin https://docs.gradle.org/current/userguide/java_gradle_plugin.html added recently adds a folder to the CP, which is not created for the eclipse import, ausing eclipse to complain.
1 parent ba3c0f2 commit eb8c82a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,9 @@ allprojects {
435435
if (isEclipse) {
436436
// set this so generated dirs will be relative to eclipse build
437437
project.buildDir = eclipseBuild
438+
// Work around https://docs.gradle.org/current/userguide/java_gradle_plugin.html confusing Eclipse by the metadata
439+
// it adds to the classpath
440+
project.file("$buildDir/pluginUnderTestMetadata").mkdirs()
438441
}
439442
eclipse.classpath.file.whenMerged { classpath ->
440443
// give each source folder a unique corresponding output folder

0 commit comments

Comments
 (0)