Skip to content

Commit

Permalink
chore(deps): Update com.gradleup.shadow plugin to 8.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed Sep 20, 2024
1 parent 1742d9a commit 584ca37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 7 additions & 11 deletions sonar-zpa-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -99,19 +98,16 @@ tasks.withType<GenerateModuleMetadata> {
}

publishing {
publications.withType<MavenPublication>().configureEach {
project.extensions.configure<ShadowExtension> {
val publication = this@configureEach
publication.pom.withXml {
val pomNode = asNode()
publications.withType<MavenPublication> {
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)
}
}

Expand Down

0 comments on commit 584ca37

Please sign in to comment.