diff --git a/spring-boot-project/spring-boot-cli/build.gradle b/spring-boot-project/spring-boot-cli/build.gradle index 0be9b6a93c..45658f4cd2 100644 --- a/spring-boot-project/spring-boot-cli/build.gradle +++ b/spring-boot-project/spring-boot-cli/build.gradle @@ -1,5 +1,6 @@ plugins { id "java" + id "eclipse" id "org.springframework.boot.deployed" id "org.springframework.boot.conventions" id "org.springframework.boot.integration-test" @@ -11,10 +12,12 @@ configurations { dependenciesBom loader testRepository + compileOnlyProject + compileClasspath.extendsFrom(compileOnlyProject) } dependencies { - compileOnly(project(":spring-boot-project:spring-boot")) + compileOnlyProject(project(":spring-boot-project:spring-boot")) compileOnly("jakarta.servlet:jakarta.servlet-api") compileOnly("org.codehaus.groovy:groovy-templates") compileOnly("org.springframework:spring-web") @@ -185,3 +188,6 @@ publishing { } } +eclipse.classpath { // https://github.com/eclipse/buildship/issues/939 + plusConfigurations += [ configurations.compileOnlyProject ] +}