From 9b7d93322f42eb277fcfae5cec254ebb8a997163 Mon Sep 17 00:00:00 2001 From: Alpar Torok Date: Wed, 11 Jul 2018 14:54:10 +0300 Subject: [PATCH] Work around reported problem in eclipse 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