Skip to content

Commit 4d451bc

Browse files
Setup Dokka & remove javadoc workflow
Sets up dokka to publish a javadoc jar, which can be viewed in reposilite. Removes the javadoc github workflow, as javadoc can be viewed through reposilite.
1 parent 9274130 commit 4d451bc

File tree

3 files changed

+10
-34
lines changed

3 files changed

+10
-34
lines changed

.github/workflows/javadoc.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ paperweight-userdev-plugin = { module = "io.papermc.paperweight:paperweight-user
1818
test-paper-api = { module = "io.papermc.paper:paper-api", version.ref = "testpaper" }
1919

2020
[plugins]
21-
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
21+
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
22+
dokka = { id = "org.jetbrains.dokka", version = "2.1.0" }

invui-kotlin/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id("invui.common-conventions")
33
alias(libs.plugins.kotlin)
4+
alias(libs.plugins.dokka)
45
}
56

67
repositories {
@@ -29,10 +30,17 @@ kotlin {
2930
}
3031
}
3132

33+
val dokkaGenerateHtmlIntoJavadoc by tasks.registering(Jar::class) {
34+
group = "dokka"
35+
archiveClassifier = "javadoc"
36+
from(tasks.dokkaGeneratePublicationHtml.flatMap { it.outputDirectory })
37+
}
38+
3239
publishing {
3340
publications {
3441
create<MavenPublication>("maven") {
3542
from(components["kotlin"])
43+
artifact(dokkaGenerateHtmlIntoJavadoc)
3644
}
3745
}
3846
}

0 commit comments

Comments
 (0)