A Kotlin template repository which can be forked to use anthropic-sdk-kotlin straight away in JVM environment.
You can use this project as a template repository on GitHub.
After cloning, you can start using it straight away by opening ClaudeCanUseTools.kt file and adjusting it to your needs.
Build the project with:
./gradlew build
Running:
./gradlew build fatJar
Will create build/libs/anthropic-sdk-kotlin-jvm-template-0.1-SNAPSHOT-fat.jar
Which you can execute directly with:
java -jar build/libs/anthropic-sdk-kotlin-jvm-template-0.1-SNAPSHOT-fat.jar
Follow TODO
comments in the sourcecode for adjustments. Don't forget about changes to: