From 1f985ed77ad96a8fdaa3c52cf4bd3a1f6b9c9f79 Mon Sep 17 00:00:00 2001 From: Gabriel Ittner Date: Fri, 4 Oct 2024 17:16:11 +0200 Subject: [PATCH] include project name in archivesBaseName --- .../kotlin/com/vanniktech/maven/publish/tasks/JavadocJar.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/src/main/kotlin/com/vanniktech/maven/publish/tasks/JavadocJar.kt b/plugin/src/main/kotlin/com/vanniktech/maven/publish/tasks/JavadocJar.kt index 6f6e867f..faecaaeb 100644 --- a/plugin/src/main/kotlin/com/vanniktech/maven/publish/tasks/JavadocJar.kt +++ b/plugin/src/main/kotlin/com/vanniktech/maven/publish/tasks/JavadocJar.kt @@ -27,7 +27,7 @@ open class JavadocJar : Jar() { "${prefix}EmptyJavadocJar", JavadocJar::class.java, ) { - it.archiveBaseName.set("$prefix-javadoc") + it.archiveBaseName.set("${project.name}-$prefix-javadoc") } private fun Project.plainJavadocJar(prefix: String): TaskProvider<*> { @@ -35,7 +35,7 @@ open class JavadocJar : Jar() { val task = tasks.named("javadoc") it.dependsOn(task) it.from(task) - it.archiveBaseName.set("$prefix-javadoc") + it.archiveBaseName.set("${project.name}-$prefix-javadoc") } } @@ -47,7 +47,7 @@ open class JavadocJar : Jar() { } it.dependsOn(task) it.from(task) - it.archiveBaseName.set("$prefix-javadoc") + it.archiveBaseName.set("${project.name}-$prefix-javadoc") } } }