Skip to content

Commit

Permalink
include project name in archivesBaseName
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielittner committed Oct 4, 2024
1 parent 12c2b20 commit 1f985ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ 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<*> {
return tasks.register("${prefix}PlainJavadocJar", JavadocJar::class.java) {
val task = tasks.named("javadoc")
it.dependsOn(task)
it.from(task)
it.archiveBaseName.set("$prefix-javadoc")
it.archiveBaseName.set("${project.name}-$prefix-javadoc")
}
}

Expand All @@ -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")
}
}
}
Expand Down

0 comments on commit 1f985ed

Please sign in to comment.