Skip to content

Commit

Permalink
add dokka task because central needs javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiaoM committed Oct 12, 2024
1 parent 0d68f08 commit cf8fec7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions overflow-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("org.jetbrains.dokka")
id("me.him188.kotlin-jvm-blocking-bridge")
id("org.ajoberstar.grgit")
}

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

setupMavenCentralPublication {
artifact(tasks.kotlinSourcesJar)
artifact(tasks.getByName("dokkaJavadocJar"))
}

val miraiVersion = extra("miraiVersion") ?: "2.16.0"
Expand Down

0 comments on commit cf8fec7

Please sign in to comment.