Skip to content

Commit

Permalink
chore(docs): add example project (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Dec 19, 2024
1 parent 708de46 commit ed5fc8f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions openai-java-example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
plugins {
id("openai.kotlin")
id("java")
application
}

dependencies {
implementation(project(":openai-java"))
}

tasks.withType<JavaCompile>().configureEach {
// Allow using more modern APIs, like `List.of` and `Map.of`, in examples.
options.release.set(9)
}

application {
mainClass = "com.openai.example.Main"
}

0 comments on commit ed5fc8f

Please sign in to comment.