From 584ca376db00d076a5a39d4b25af8c1b46508a9a Mon Sep 17 00:00:00 2001 From: Felipe Zorzo Date: Fri, 20 Sep 2024 19:45:54 -0300 Subject: [PATCH] chore(deps): Update com.gradleup.shadow plugin to 8.3.2 --- gradle/libs.versions.toml | 2 +- sonar-zpa-plugin/build.gradle.kts | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8d01342c..3e16608d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ dokka = "1.9.20" download = "5.6.0" jreleaser = "1.14.0" license = "0.16.1" -shadow = "8.3.0" +shadow = "8.3.2" sonarscanner = "5.1.0.4882" # libs diff --git a/sonar-zpa-plugin/build.gradle.kts b/sonar-zpa-plugin/build.gradle.kts index a95bca66..05249968 100644 --- a/sonar-zpa-plugin/build.gradle.kts +++ b/sonar-zpa-plugin/build.gradle.kts @@ -1,4 +1,3 @@ -import com.github.jengelman.gradle.plugins.shadow.ShadowExtension import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import groovy.util.Node import groovy.util.NodeList @@ -99,19 +98,16 @@ tasks.withType { } publishing { - publications.withType().configureEach { - project.extensions.configure { - val publication = this@configureEach - publication.pom.withXml { - val pomNode = asNode() + publications.withType { + this.pom.withXml { + val pomNode = asNode() - val dependencyNodes = pomNode.get("dependencies") as NodeList - dependencyNodes.forEach { - (it as Node).parent().remove(it) - } + val dependencyNodes = pomNode.get("dependencies") as NodeList + dependencyNodes.forEach { + (it as Node).parent().remove(it) } - component(this@configureEach) } + artifact(shadowJar) } }