Files
java-sdk/hanzo-java/build.gradle.kts
2026-09-11 17:55:27 +00:00

30 lines
768 B
Kotlin

plugins {
id("hanzo.kotlin")
id("hanzo.publish")
}
dependencies {
api(project(":hanzo-java-client-okhttp"))
}
// Redefine `dokkaJavadoc` to:
// - Depend on the root project's task for merging the docs of all the projects
// - Forward that task's output to this task's output
tasks.named("dokkaJavadoc").configure {
actions.clear()
val dokkaJavadocCollector = rootProject.tasks["dokkaJavadocCollector"]
dependsOn(dokkaJavadocCollector)
val outputDirectory = project.layout.buildDirectory.dir("dokka/javadoc")
doLast {
copy {
from(dokkaJavadocCollector.outputs.files)
into(outputDirectory)
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
}
outputs.dir(outputDirectory)
}