From eb8c82a66b0a901e5360dfd527637b3114ace376 Mon Sep 17 00:00:00 2001 From: Alpar Torok Date: Thu, 12 Jul 2018 08:55:31 +0000 Subject: [PATCH] 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. --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 0d77f8fd59ef0..a75d093664fe6 100644 --- a/build.gradle +++ b/build.gradle @@ -435,6 +435,9 @@ allprojects { if (isEclipse) { // set this so generated dirs will be relative to eclipse build project.buildDir = eclipseBuild + // Work around https://docs.gradle.org/current/userguide/java_gradle_plugin.html confusing Eclipse by the metadata + // it adds to the classpath + project.file("$buildDir/pluginUnderTestMetadata").mkdirs() } eclipse.classpath.file.whenMerged { classpath -> // give each source folder a unique corresponding output folder