Skip to content

Conversation

@ivanauth
Copy link
Contributor

Description

Adds Kotlin and Scala examples demonstrating how to use the Authzed Java client library from other JVM languages.

Changes

  • Add Kotlin example (examples/kotlin/CallingCheck.kt) with idiomatic syntax
  • Add Scala example (examples/scala/CallingCheck.scala) with functional programming patterns
  • Add README (examples/README.md) with installation instructions for Maven, Gradle, and SBT
  • Add Eclipse IDE files to .gitignore

Closes #11

Closes authzed#11

Added example code demonstrating how to use the Authzed Java client library
from Kotlin and Scala, making it easier for developers in those ecosystems
to integrate SpiceDB. The examples show idiomatic usage patterns for each
language while using the same underlying Java client library.

Changes:
- Add Kotlin example (examples/kotlin/CallingCheck.kt) with concise syntax
  and better null safety
- Add Scala example (examples/scala/CallingCheck.scala) with functional
  programming patterns using Try and Option monads
- Add comprehensive README (examples/README.md) documenting installation
  and usage for Java, Kotlin, and Scala with build tool configurations
- Fix unused import in Scala example
- Make dependency instructions consistent for grpc-netty-shaded across
  all build tools
- Add Eclipse IDE files to .gitignore

Signed-off-by: ivanauth <ivan@authzed.com>
@ivanauth ivanauth requested a review from a team as a code owner January 16, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide examples from other JVM languages

1 participant