Skip to content

Commit 7f960e7

Browse files
chore(docs): add example project (#59)
1 parent a1977ca commit 7f960e7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
plugins {
2+
id("openai.kotlin")
23
id("java")
4+
application
35
}
46

5-
repositories {
6-
mavenCentral()
7+
dependencies {
8+
implementation(project(":openai-java"))
79
}
810

9-
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+
}
1015

11-
implementation(project(":openai-java"))
12-
implementation(project(mapOf("path" to ":openai-java-core")))
16+
application {
17+
mainClass = "com.openai.example.Main"
1318
}

0 commit comments

Comments
 (0)