openai/openai-java
Publicmirrored from https://github.com/openai/openai-javaAvailable
openai-java/build.gradle.kts
29lines · modecode
| 1 | plugins { |
| 2 | id("openai.kotlin") |
| 3 | id("openai.publish") |
| 4 | } |
| 5 | |
| 6 | dependencies { |
| 7 | api(project(":openai-java-client-okhttp")) |
| 8 | } |
| 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 | } |
| 30 | |