anthropic-java-example/build.gradle.kts (18 lines of code) (raw):
plugins {
id("anthropic.java")
application
}
repositories {
mavenCentral()
}
dependencies {
implementation(project(":anthropic-java"))
implementation(project(":anthropic-java-bedrock"))
implementation(project(":anthropic-java-vertex"))
}
tasks.withType<JavaCompile>().configureEach {
// Allow using more modern APIs, like `List.of` and `Map.of`, in examples.
options.release.set(11)
}
application {
mainClass = "com.anthropic.example.Main"
}