diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle index f237b1341f..84a6e2c107 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle @@ -89,3 +89,15 @@ compileJava { options.compilerArgs += ['-Xlint:-sunapi', '-XDenableSunApiLintControl'] } } + +plugins.withType(EclipsePlugin) { + eclipse { + classpath.file { merger -> + merger.beforeMerged { content -> + if (content instanceof org.gradle.plugins.ide.eclipse.model.Classpath) { + content.entries.add(new org.gradle.plugins.ide.eclipse.model.SourceFolder("build/generated-resources/main", "bin/main")) + } + } + } + } +}