Contributing
May 8, 2024 ยท View on GitHub
Building gears
gears currently require:
- On the JVM: JVM with support for virtual threads. This usually means JVM 21+, or 19+ with
--enable-preview. - On Scala Native: Scala Native with delimited continuations support, which are available from 0.5.0. Right now we are using
0.5.1.
All of the needed dependencies can be loaded by the included Nix Flake. If you have nix with flake enabled, run
nix develop
to enter the development environment with all the dependencies loaded. You can also use direnv's use flake to automate this process.
Once done, it should suffice to run
sbt publishLocal
to have Gears compiled and published locally for usage.
Running Tests
sbt test