Scala Setup
Fory Scala artifacts are published to Maven Central for Scala 2.13 and Scala 3. Schema-generated Scala sources and macro-derived xlang serializers require Scala 3. The runtime uses Fory Java, so keep all Fory artifacts on the same release.
Verify the Toolchain
java -version
scala -version
sbt --version
Choose a Capability
| Capability | Artifact or tool | Continue with |
|---|---|---|
| Object Serialization | fory-scala_2.13 or fory-scala_3 | Scala object serialization, then choose xlang or native |
| Schema and generated models | fory-compiler; Scala 3 output | Fory IDL and Compiler |
| Fory gRPC | Scala 3 generated companions plus grpc-java | Scala gRPC |
Each capability guide owns its exact Maven or sbt declaration and first runnable example.