From ef79a18514ba004552f7aab88183b79133f724de Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Mon, 4 Apr 2022 15:46:42 -0500 Subject: [PATCH] Use provided scope for Maven core dependencies in Maven plugin Fixes gh-29520 --- .../spring-boot-maven-plugin/build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle index a8e7b881fb..b9c3536d4d 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle @@ -25,18 +25,18 @@ repositories { dependencies { compileOnly("org.apache.maven.plugin-tools:maven-plugin-annotations") compileOnly("org.sonatype.plexus:plexus-build-api") - - 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") { + compileOnly("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") { + compileOnly("org.apache.maven:maven-plugin-api") { exclude(group: "javax.enterprise", module: "cdi-api") exclude(group: "javax.inject", module: "javax.inject") } + implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform")) + implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools")) + intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform")) intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools")) intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))