Skip to content

Commit b5cf3e0

Browse files
committed
Backport 'Support import into Eclipse 2022-06'
Backport `spring-boot-cli` gradle fix from d4ed2bd to allow clean import into Eclipse 2022-06 and above.
1 parent e912c1b commit b5cf3e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spring-boot-project/spring-boot-cli/build.gradle

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id "java"
3+
id "eclipse"
34
id "org.springframework.boot.deployed"
45
id "org.springframework.boot.conventions"
56
id "org.springframework.boot.integration-test"
@@ -11,10 +12,12 @@ configurations {
1112
dependenciesBom
1213
loader
1314
testRepository
15+
compileOnlyProject
16+
compileClasspath.extendsFrom(compileOnlyProject)
1417
}
1518

1619
dependencies {
17-
compileOnly(project(":spring-boot-project:spring-boot"))
20+
compileOnlyProject(project(":spring-boot-project:spring-boot"))
1821
compileOnly("jakarta.servlet:jakarta.servlet-api")
1922
compileOnly("org.codehaus.groovy:groovy-templates")
2023
compileOnly("org.springframework:spring-web")
@@ -185,3 +188,6 @@ publishing {
185188
}
186189
}
187190

191+
eclipse.classpath { // https://github.com/eclipse/buildship/issues/939
192+
plusConfigurations += [ configurations.compileOnlyProject ]
193+
}

0 commit comments

Comments
 (0)