Rework dep management to avoid consumers picking up strict constraints
Previously, enforcedPlatform dependencies were using to pull in the constraints defined in spring-boot-dependencies and spring-boot-parent and applied them strictly so that the constrained version had to be used. This worked as intended in Spring Boot's own build but incorrectly enforced those same strict version requirements on external consumers of Spring Boot's modules. This commit reworks how Spring Boot defines its internal dependency management so that platform dependencies are exposed to external consumers while enforced platform dependencies are using internally. See gh-19609
This commit is contained in:
@@ -3,6 +3,7 @@ plugins {
|
||||
id 'org.springframework.boot.deployed'
|
||||
id 'org.springframework.boot.conventions'
|
||||
id 'org.springframework.boot.integration-test'
|
||||
id 'org.springframework.boot.internal-dependency-management'
|
||||
}
|
||||
|
||||
description = "Spring Boot CLI"
|
||||
@@ -15,16 +16,14 @@ configurations {
|
||||
|
||||
dependencies {
|
||||
compileOnly project(':spring-boot-project:spring-boot')
|
||||
|
||||
compileOnly 'jakarta.servlet:jakarta.servlet-api'
|
||||
compileOnly 'org.codehaus.groovy:groovy-templates'
|
||||
compileOnly 'org.springframework:spring-web'
|
||||
|
||||
dependenciesBom project(path: ':spring-boot-project:spring-boot-dependencies', configuration: 'effectiveBom')
|
||||
|
||||
implementation enforcedPlatform(project(':spring-boot-project:spring-boot-parent'))
|
||||
implementation platform(project(':spring-boot-project:spring-boot-parent'))
|
||||
implementation project(':spring-boot-project:spring-boot-tools:spring-boot-loader-tools')
|
||||
|
||||
implementation 'com.vaadin.external.google:android-json'
|
||||
implementation 'jline:jline'
|
||||
implementation 'net.sf.jopt-simple:jopt-simple'
|
||||
@@ -51,7 +50,7 @@ dependencies {
|
||||
implementation 'org.springframework:spring-core'
|
||||
implementation 'org.springframework.security:spring-security-crypto'
|
||||
|
||||
intTestImplementation enforcedPlatform(project(':spring-boot-project:spring-boot-dependencies'))
|
||||
intTestImplementation platform(project(':spring-boot-project:spring-boot-dependencies'))
|
||||
intTestImplementation project(':spring-boot-project:spring-boot-tools:spring-boot-loader-tools')
|
||||
intTestImplementation project(':spring-boot-project:spring-boot-tools:spring-boot-test-support')
|
||||
intTestImplementation 'org.assertj:assertj-core'
|
||||
|
||||
Reference in New Issue
Block a user