openai/openai-java
Publicmirrored from https://github.com/openai/openai-javaAvailable
openai-java-example/build.gradle.kts
23lines · modecode
| 1 | plugins { |
| 2 | id("java") |
| 3 | application |
| 4 | } |
| 5 | |
| 6 | repositories { |
| 7 | mavenCentral() |
| 8 | } |
| 9 | |
| 10 | dependencies { |
| 11 | implementation(project(":openai-java")) |
| 12 | implementation("com.azure:azure-identity:1.15.0") |
| 13 | } |
| 14 | |
| 15 | java { |
| 16 | // Allow using more modern APIs, like `List.of` and `Map.of`, in examples. |
| 17 | sourceCompatibility = JavaVersion.VERSION_11 |
| 18 | targetCompatibility = JavaVersion.VERSION_11 |
| 19 | } |
| 20 | |
| 21 | application { |
| 22 | mainClass = "com.openai.example.Main" |
| 23 | } |
| 24 | |