rules_scala
rules_scala copied to clipboard
Scala rules for Bazel
### Description Updates the build to depend on rules_proto 6.0.2, and the now separate protobuf v21.7. Part of #1482. As explained in the 6.0.0 release notes, rules_proto 6.x no longer...
The Worker uses the SecurityManager to prevent `System.exit`. The SM is deprecated for removal, and will be going away [soon](https://openjdk.org/jeps/486). Previously, we've been punting on this issue by enabling the...
### Description ### Motivation
Using rules_scala with a modern jvm produces warnings: ``` warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is...
### Description * Port `ProtoReporter` and `DepsTrackingReporter` to Scala 3 * Adapt ScalacInvoker to use new reports in Scala 3 * Enable reports tests for Scala 3 (test_scala_version). Mitigate differences...
### Description ### Motivation
### Description Eliminates the "canonical reproducible form" warnings that often appear for users that enable compiler dependency tracking. Fixes #1743. Emits a detailed error message if the configured Scala version...
If you use `ast-plus` in your toolchain, you will see something like this print out as part of the build: ``` DEBUG: Rule 'rules_scala++scala_deps+scala_compiler_source_2_13_16' indicated that a canonical reproducible form...
### Description Fixes a few problems when building under `WORKSPACE` with Bazel 8.2.1 (7.6.1 doesn't require these changes). Adds to `.bazelrc` the `--incompatible_autoload_externally=` flag as a common option for all...
### Description Adds the `examples/twitter_scrooge` repository, adds `test_twitter_scrooge_example` to `test/shell/test_examples.sh`, and enables overriding all `twitter_scrooge` dependencies. Fixes #1744. Adds `docs/twitter_scrooge.md` and includes extensive comments in `examples/twitter_scrooge/{BUILD,MODULE.bazel,WORKSPACE}`. Also updates `test/shell/test_examples.sh`: -...