Skip to content

Commit 2fc0016

Browse files
committed
Fix spring-boot-gradle-plugin's tests in Eclipse
Closes gh-32625
1 parent a3168e3 commit 2fc0016

File tree

1 file changed

+12
-0
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-loader-tools

1 file changed

+12
-0
lines changed

spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,15 @@ compileJava {
100100
options.compilerArgs += ['-Xlint:-sunapi', '-XDenableSunApiLintControl']
101101
}
102102
}
103+
104+
plugins.withType(EclipsePlugin) {
105+
eclipse {
106+
classpath.file { merger ->
107+
merger.beforeMerged { content ->
108+
if (content instanceof org.gradle.plugins.ide.eclipse.model.Classpath) {
109+
content.entries.add(new org.gradle.plugins.ide.eclipse.model.SourceFolder("build/generated-resources/main", "bin/main"))
110+
}
111+
}
112+
}
113+
}
114+
}

0 commit comments

Comments
 (0)