Skip to content

Commit

Permalink
Create dokka javadoc task
Browse files Browse the repository at this point in the history
  • Loading branch information
wtlgo committed Jun 13, 2024
1 parent 50ed7d3 commit f2dc9c5
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "java"
id "org.jetbrains.kotlin.jvm" version "2.0.0"
id "org.jetbrains.dokka" version "1.7.20"
id "org.jetbrains.dokka" version "1.9.20"
id "maven-publish"
id "com.github.johnrengelman.shadow" version "7.1.2"
}
Expand Down Expand Up @@ -121,20 +121,10 @@ if (file("local.gradle").exists()) {
apply from: "local.gradle"
}

/*
dokkaHtml {
outputDirectory.set(file("${buildDir}/dokka"))
}
javadocJar {
tasks.register('dokkaJavadocJar', Jar.class) {
dependsOn(dokkaJavadoc)
from(dokkaJavadoc)
archiveClassifier.set("javadoc")
dependsOn("dokkaHtml")
from("$buildDir/dokka")
}
*/

javadocJar {
from(tasks.named("dokkaJavadoc"))
}

shadowJar {
Expand Down Expand Up @@ -169,7 +159,7 @@ publishing {
artifactId = "vote-receiver"

artifact jar
artifact javadocJar
artifact dokkaJavadocJar
artifact sourcesJar
}
}
Expand Down

0 comments on commit f2dc9c5

Please sign in to comment.