openai/openai-java

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
89c94a7bbb29917c2848d39d9784cd0c05b04c99

Branches

Tags

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

Clone

HTTPS

Download ZIP

openai-java-example/build.gradle.kts

30lines · modecode

1plugins {
2 id("openai.java")
3 application
4}
5
6repositories {
7 mavenCentral()
8}
9
10dependencies {
11 implementation(project(":openai-java"))
12 implementation(project(":openai-java-bedrock"))
13 implementation("com.azure:azure-identity:1.15.0")
14}
15
16tasks.withType<JavaCompile>().configureEach {
17 // Allow using more modern APIs, like `List.of` and `Map.of`, in examples.
18 options.release.set(11)
19}
20
21application {
22 // Use `./gradlew :openai-java-example:run` to run `Main`
23 // Use `./gradlew :openai-java-example:run -Pexample=Something` to run `SomethingExample`
24 mainClass = "com.openai.example.${
25 if (project.hasProperty("example"))
26 "${project.property("example")}Example"
27 else
28 "Main"
29 }"
30}
31