mirror of
https://github.com/hanzoai/java-sdk.git
synced 2026-10-30 15:07:36 +00:00
30 lines
768 B
Kotlin
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)
|
|
}
|