Prohibit unwanted dependencies in all modules not just starters
Closes gh-28658
This commit is contained in:
@@ -21,8 +21,14 @@ dependencies {
|
||||
|
||||
implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform"))
|
||||
implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
|
||||
implementation("org.apache.maven.shared:maven-common-artifact-filters")
|
||||
implementation("org.apache.maven:maven-plugin-api")
|
||||
implementation("org.apache.maven.shared:maven-common-artifact-filters") {
|
||||
exclude(group: "javax.enterprise", module: "cdi-api")
|
||||
exclude(group: "javax.inject", module: "javax.inject")
|
||||
}
|
||||
implementation("org.apache.maven:maven-plugin-api") {
|
||||
exclude(group: "javax.enterprise", module: "cdi-api")
|
||||
exclude(group: "javax.inject", module: "javax.inject")
|
||||
}
|
||||
|
||||
intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform"))
|
||||
intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
|
||||
@@ -33,7 +39,10 @@ dependencies {
|
||||
intTestImplementation("org.testcontainers:testcontainers")
|
||||
intTestImplementation("org.testcontainers:junit-jupiter")
|
||||
|
||||
mavenOptionalImplementation("org.apache.maven.plugins:maven-shade-plugin")
|
||||
mavenOptionalImplementation("org.apache.maven.plugins:maven-shade-plugin") {
|
||||
exclude(group: "javax.enterprise", module: "cdi-api")
|
||||
exclude(group: "javax.inject", module: "javax.inject")
|
||||
}
|
||||
|
||||
runtimeOnly("org.sonatype.plexus:plexus-build-api")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user