From 91d9b3b991efc9f85fe72f16394b462bd16b611c Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Sat, 18 Apr 2020 22:18:47 -0700 Subject: [PATCH] Fix javadoc sources Jar publication Invalid publication 'mavenJava': multiple artifacts with the identical extension and classifier ('jar', 'null'). --- test_runner/build.gradle.kts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test_runner/build.gradle.kts b/test_runner/build.gradle.kts index 9c538ad858..6e2da3ee84 100644 --- a/test_runner/build.gradle.kts +++ b/test_runner/build.gradle.kts @@ -69,9 +69,8 @@ publishing { version = System.getenv("MVN_VERSION") artifact(shadowJar) - // TODO: Is there a better way to fetch these paths? - artifact("./build/libs/${flankGroup}-${flankVersion}-javadoc.jar") - artifact("./build/libs/${flankGroup}-${flankVersion}-sources.jar") + artifact(tasks["javadocJar"]) + artifact(tasks["sourcesJar"]) pom { name.set("Flank")