Support import into Eclipse 2022-06
Fix a few issues preventing clean project import into Eclipse 2022-06:
- `buildSrc` need to limit module imports to prevent clashes
with those in the gradle API jar.
- The CLI app needs some classpath changes in order to allow
compileOnly project dependencies to resolve.
- `AbstractJpaAutoConfigurationTests` needs some minor refactoring
in order for generic captures to work with the Eclipse compiler.
This commit is contained in:
@@ -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.apache.groovy:groovy-templates")
|
||||
compileOnly("org.springframework:spring-web")
|
||||
@@ -199,3 +202,6 @@ publishing {
|
||||
}
|
||||
}
|
||||
|
||||
eclipse.classpath { // https://github.com/eclipse/buildship/issues/939
|
||||
plusConfigurations += [ configurations.compileOnlyProject ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user