We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1977ca commit 7f960e7Copy full SHA for 7f960e7
openai-java-example/build.gradle.kts
@@ -1,13 +1,18 @@
1
plugins {
2
+ id("openai.kotlin")
3
id("java")
4
+ application
5
}
6
-repositories {
- mavenCentral()
7
+dependencies {
8
+ implementation(project(":openai-java"))
9
10
-dependencies {
11
+tasks.withType<JavaCompile>().configureEach {
12
+ // Allow using more modern APIs, like `List.of` and `Map.of`, in examples.
13
+ options.release.set(9)
14
+}
15
- implementation(project(":openai-java"))
- implementation(project(mapOf("path" to ":openai-java-core")))
16
+application {
17
+ mainClass = "com.openai.example.Main"
18
0 commit comments