Skip to content

Commit

Permalink
update dokka settings (#181)
Browse files Browse the repository at this point in the history
update dokka settings

Co-authored-by: kpavlov <{ID}+{username}@users.noreply.github.com>
  • Loading branch information
kpavlov and kpavlov authored Sep 14, 2024
1 parent 84f8793 commit d028f38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,14 @@ tasks.test {
}
}

val dokkaHtml by tasks.getting(org.jetbrains.dokka.gradle.DokkaTask::class)

val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
dependsOn(dokkaHtml)
val dokkaJavadocJar by tasks.register<Jar>("dokkaJavadocJar") {
dependsOn(tasks.dokkaJavadoc)
from(tasks.dokkaJavadoc.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
from(dokkaHtml.outputDirectory)
}

java {
withSourcesJar()
withJavadocJar()
}

tasks.jar {
Expand All @@ -101,7 +98,7 @@ tasks.jar {
}

tasks.assemble {
dependsOn(javadocJar)
dependsOn(dokkaJavadocJar)
}

publishing {
Expand All @@ -122,8 +119,8 @@ publishing {
developer {
id.set("kpavlov")
name.set("Konstantin Pavlov")
email.set("mail@KonstantinPavlov.net")
url.set("https://KonstantinPavlov.net?utm_source=jreactive8583")
email.set("mail@kpavlov.me")
url.set("https://kpavlov.me?utm_source=jreactive8583")
roles.set(listOf("owner", "developer"))
}
}
Expand All @@ -136,6 +133,7 @@ publishing {
inceptionYear.set("2015")
}
from(components["java"])
artifact(dokkaJavadocJar)
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# exit when any command fails
set -e

GRADLE_ARGS="-Pversion=1.5.0"
GRADLE_ARGS="-Pversion=1.5.1"

source build.sh

Expand Down

0 comments on commit d028f38

Please sign in to comment.