Fix spring-boot-gradle-plugin's tests in Eclipse

Closes gh-32625
This commit is contained in:
Andy Wilkinson 2024-11-04 13:11:45 +00:00
parent a3168e3a2f
commit 2fc0016ef1
1 changed files with 12 additions and 0 deletions

View File

@ -100,3 +100,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"))
}
}
}
}
}