Skip to content

Commit

Permalink
Use Dokka for JavaDoc on Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Jun 3, 2024
1 parent 0345874 commit f20eb13
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ android {
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
// We use Dokka for JavaDoc generation, see dokkaJavadocJar below
// withJavadocJar()
}
}
}
Expand Down Expand Up @@ -93,6 +94,13 @@ dependencies {
dokkaPlugin(libs.dokka.plugin)
}

val dokkaJavadocJar = tasks.register<Jar>("dokkaJavadocJar") {
group = "documentation"
from(tasks.dokkaJavadoc)
dependsOn(tasks.dokkaJavadoc)
archiveClassifier.set("javadoc")
}

publishing {
repositories {
maven {
Expand All @@ -119,6 +127,7 @@ publishing {
groupId = "com.theoplayer.android-ui"
artifactId = "android-ui"
version = libraryVersion
artifact(dokkaJavadocJar)
afterEvaluate {
from(components["release"])
}
Expand Down

0 comments on commit f20eb13

Please sign in to comment.