Skip to content

Commit

Permalink
Fix empty javadoc (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa authored Dec 22, 2023
1 parent 8455c28 commit fb30690
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.dokka)
`java-gradle-plugin`
`maven-publish`
signing
Expand Down Expand Up @@ -29,14 +30,20 @@ gradlePlugin {

java {
withSourcesJar()
withJavadocJar()
}

val dokkaJar = tasks.register<Jar>("dokkaJar") {
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}

version = "2.2.0-SNAPSHOT"
group = "com.ioki.lokalise"
publishing {
publications {
register("pluginMaven", MavenPublication::class.java) {
artifact(dokkaJar)
artifactId = "lokalise-gradle-plugin"
}
withType<MavenPublication>().configureEach {
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ kotlinCoroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3"

[plugins]
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlinVersion" }
dokka = "org.jetbrains.dokka:1.9.10"

0 comments on commit fb30690

Please sign in to comment.