-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
43 lines (35 loc) · 1.03 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
plugins {
kotlin("jvm") version "2.0.21"
kotlin("plugin.serialization") version "2.0.21" // needed if you use tools
application
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.xemantic.anthropic:anthropic-sdk-kotlin:0.5.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.7.3")
implementation("io.ktor:ktor-client-java:3.0.0")
implementation("org.slf4j:slf4j-simple:2.0.16")
}
application {
// TODO update with your package and application name
mainClass.set("com.xemantic.anthropic.demo.ClaudeCanUseToolsKt")
}
tasks.register<Jar>("fatJar") {
archiveClassifier.set("fat")
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter {
it.name.endsWith("jar")
}.map {
zipTree(it)
}
})
manifest {
attributes["Main-Class"] = application.mainClass
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}