Skip to content

Commit 27bfcec

Browse files
chore(internal): remove space (#125)
1 parent 61ada05 commit 27bfcec

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

openai-java/build.gradle.kts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,24 @@ plugins {
66
dependencies {
77
api(project(":openai-java-client-okhttp"))
88
}
9+
10+
// Redefine `dokkaJavadoc` to:
11+
// - Depend on the root project's task for merging the docs of all the projects
12+
// - Forward that task's output to this task's output
13+
tasks.named("dokkaJavadoc").configure {
14+
actions.clear()
15+
16+
val dokkaJavadocCollector = rootProject.tasks["dokkaJavadocCollector"]
17+
dependsOn(dokkaJavadocCollector)
18+
19+
val outputDirectory = project.layout.buildDirectory.dir("dokka/javadoc")
20+
doLast {
21+
copy {
22+
from(dokkaJavadocCollector.outputs.files)
23+
into(outputDirectory)
24+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
25+
}
26+
}
27+
28+
outputs.dir(outputDirectory)
29+
}

0 commit comments

Comments
 (0)