File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,24 @@ plugins {
66dependencies {
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+ }
You can’t perform that action at this time.
0 commit comments