From ac8697f035e5fe007540beab29a2391c9fe2c410 Mon Sep 17 00:00:00 2001 From: Heizi Date: Thu, 8 Sep 2022 23:26:15 +0800 Subject: [PATCH] update gradle enterprise version --- settings.gradle | 2 +- .../jengelman/gradle/plugins/shadow/ShadowExtension.groovy | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/settings.gradle b/settings.gradle index f82018015..cd178262b 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,5 +1,5 @@ plugins { - id 'com.gradle.enterprise' version '3.1.1' + id 'com.gradle.enterprise' version '3.11.1' } rootProject.name = 'shadow' \ No newline at end of file diff --git a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowExtension.groovy b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowExtension.groovy index 22ff62f80..f69425c74 100644 --- a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowExtension.groovy +++ b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowExtension.groovy @@ -28,8 +28,7 @@ class ShadowExtension { publication.pom { MavenPom pom -> pom.withXml { xml -> - def dependenciesNode = xml.asNode().get('dependencies')?.get(0) ?: xml.asNode().appendNode('dependencies') - dependenciesNode.value = "" + def dependenciesNode = xml.asNode().appendNode('dependencies') project.configurations.shadow.allDependencies.each { if ((it instanceof ProjectDependency) || ! (it instanceof SelfResolvingDependency)) { def dependencyNode = dependenciesNode.appendNode('dependency')