openai/openai-java

Public

mirrored from https://github.com/openai/openai-javaAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.6.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

openai-java/build.gradle.kts

29lines · modecode

1plugins {
2 id("openai.kotlin")
3 id("openai.publish")
4}
5
6dependencies {
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
13tasks.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