mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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
28 lines
1.2 KiB
Groovy
28 lines
1.2 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot.starter'
|
|
}
|
|
|
|
description = "Starter for building RESTful web applications using JAX-RS and Jersey. An alternative to spring-boot-starter-web"
|
|
|
|
dependencies {
|
|
api platform(project(':spring-boot-project:spring-boot-dependencies'))
|
|
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter-json')
|
|
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter-tomcat')
|
|
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter-validation')
|
|
api 'org.springframework:spring-web'
|
|
api 'org.glassfish.jersey.core:jersey-server'
|
|
api 'org.glassfish.jersey.containers:jersey-container-servlet-core'
|
|
api 'org.glassfish.jersey.containers:jersey-container-servlet'
|
|
api ('org.glassfish.jersey.ext:jersey-bean-validation') {
|
|
exclude group: 'jakarta.el', module: 'jakarta.el-api'
|
|
exclude group: 'org.glassfish', module: 'jakarta.el'
|
|
}
|
|
api 'org.glassfish.jersey.ext:jersey-spring4'
|
|
api 'org.glassfish.jersey.media:jersey-media-json-jackson'
|
|
}
|
|
|
|
checkRuntimeClasspathForConflicts {
|
|
ignore { name -> name.startsWith('org/aopalliance/intercept/') }
|
|
ignore { name -> name.startsWith('org/aopalliance/aop/') }
|
|
}
|