We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 569a966 commit fa9c0a3Copy full SHA for fa9c0a3
1 file changed
build.gradle
@@ -1,4 +1,5 @@
1
import de.undercouch.gradle.tasks.download.Download
2
+import javax.inject.Inject
3
4
plugins {
5
// https://plugins.gradle.org/plugin/com.gradleup.shadow
@@ -219,6 +220,11 @@ allprojects { currentProj ->
219
220
eclipse.classpath {
221
defaultOutputDir = file("build/default")
222
file.whenMerged { cp ->
223
+ // Remove bare 'src/main' source folder entries that cause Eclipse nesting errors.
224
+ cp.entries.removeAll { e ->
225
+ e instanceof org.gradle.plugins.ide.eclipse.model.SourceFolder && e.path == 'src/main'
226
+ }
227
+
228
cp.entries.forEach { cpe ->
229
if (cpe instanceof org.gradle.plugins.ide.eclipse.model.SourceFolder) {
230
cpe.output = cpe.output.replace "bin/", "build/classes/java/"
0 commit comments