From 592f093566f49af813a665c6f4e5dffd899f15e9 Mon Sep 17 00:00:00 2001 From: Sxtanna Date: Wed, 29 Jul 2020 17:42:42 -0400 Subject: [PATCH] updated maven publication to remove transitive dependencies --- build.gradle | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 45848c7..cc30f3a 100644 --- a/build.gradle +++ b/build.gradle @@ -33,15 +33,9 @@ dependencies { testRuntime "org.junit.jupiter:junit-jupiter-engine:5.6.2" } -import org.apache.tools.ant.filters.ReplaceTokens - processResources { from(sourceSets.main.resources.srcDirs) { - filter ReplaceTokens, tokens: [ - name: rootProject.name, - version: project.version.toString(), - description: project.description - ] + filter org.apache.tools.ant.filters.ReplaceTokens, tokens: [name: rootProject.name, version: project.version.toString(), description: project.description] } } @@ -82,7 +76,6 @@ sourceSets { publishing { repositories { maven { - if (version.contains("-DEV-")) { url = uri("https://repo.extendedclip.com/content/repositories/dev/") } else { @@ -97,8 +90,12 @@ publishing { } publications { - maven(MavenPublication) { - from(components.java) + mavenJava(MavenPublication) { + from components.java + + pom.withXml { + asNode().remove(asNode().get("dependencies")) + } } } }