Skip to content

Commit

Permalink
publish with javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiaoM committed Dec 30, 2023
1 parent 6b6f6e7 commit 93fff9b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.0" apply false
kotlin("plugin.serialization") version "1.8.0" apply false
id("org.jetbrains.dokka") version "1.8.10" apply false
id("com.github.johnrengelman.shadow") version "7.0.0" apply false
id("com.github.gmazzo.buildconfig") version "3.1.0" apply false
id("me.him188.kotlin-jvm-blocking-bridge") version "3.0.0-180.1" apply false
Expand Down
9 changes: 9 additions & 0 deletions onebot/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
plugins {
kotlin("jvm")
id("org.jetbrains.dokka")
id("me.him188.kotlin-jvm-blocking-bridge")
}

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"))
}

dependencies {
Expand Down
9 changes: 9 additions & 0 deletions overflow-core-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("org.jetbrains.dokka")
id("me.him188.kotlin-jvm-blocking-bridge")
}

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 = rootProject.ext["miraiVersion"].toString()
Expand Down

0 comments on commit 93fff9b

Please sign in to comment.