From adffd6bb89bddd1821b623f5189c6168c31f4b23 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Thu, 28 Jul 2022 23:11:51 +0200 Subject: [PATCH] Fix duplicated artifacts on a publication Invalid publication 'gradleDockerPlugin': multiple artifacts with the identical extension and classifier ('jar', 'sources'). --- build.gradle.kts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7b54e03..e132996 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -174,8 +174,10 @@ publishing { artifactId = "gradle-debian-plugin" version = artifactVersion from(components["java"]) - artifact(sourcesJar.get()) - artifact(javadocJar.get()) + // TODO how do we ensure that these artifacts will always be added + // automatically? +// artifact(sourcesJar.get()) +// artifact(javadocJar.get()) } } }