Skip to content

Commit

Permalink
include project name in archivesBaseName (#852)
Browse files Browse the repository at this point in the history
* include project name in archivesBaseName

* changelog
  • Loading branch information
gabrielittner authored Oct 5, 2024
1 parent bcc04d1 commit 9604ecd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Removed support for the old `org.jetbrains.dokka-android` plugin
- Remove usages of deprecated Gradle API that is scheduled to be removed in Gradle 9.0
- Raised minimum supported Gradle version
- Improve naming of javadoc jars

#### Minimum supported versions
- JDK 11
Expand Down
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 9604ecd

Please sign in to comment.