rules_scala
rules_scala copied to clipboard
Scala rules for Bazel
`rules_scala` doesn't work out of the box with Java 18 or 19, since `Worker.java` makes use of a SecurityManager, which is not allowed by default as of Java 18. See...
### Description Include `runtime_jdk` as an an `attr` on `jmh_support:benchmark_generator`. `scala_benchmark_jmh` can now specify a Java runtime to build its `scala_binary` with. To test whether our changes work for different...
`scala_toolchain` has two attributes that specify target patterns: https://github.com/bazelbuild/rules_scala/blob/17791a18aa966cdf2babb004822e6c70a7decc76/scala/scala_toolchain.bzl#L120-L127 These are implemented as string lists, and directly used to compare with a stringified label's prefix: https://github.com/bazelbuild/rules_scala/blob/b85d1225d0ddc9c376963eb0be86d9d546f25a4a/scala/private/phases/phase_dependency.bzl#L82-L91 This is very brittle...
Shell tests in rules_scala are run by executing a huge shell script (`//:test_rules_scala.sh`) which runs each individual shell test function sequentially. This is very painful for developers: * No caching:...
Also disabled some tests involving target patterns (see https://github.com/bazelbuild/rules_scala/issues/1420) ### Description ### Motivation
Repro'able for linux and mac. The normal behavior is ``` % echo 3 | bazel run test:HelloLibRepl ... INFO: Build completed successfully, 1 total action Welcome to Scala 2.12.14 (OpenJDK...
The [fix](https://github.com/bazelbuild/bazel/issues/12702) was available ### Description Since gcc 11 some headers are mandatory to build ijar third party. ### Motivation I use fedora 35 and so I have gcc 12...
### Description This PR allows the registration of multiple toolchains for various scala versions. Extends both `scala_library` and `scala_binary` with `scala_version` parameter which allows to pick proper toolchain Detailed explanation...
Trying to get coverage working for a repository after upgrading rules_scala to `a40063ef97688f056824b22b9e49fae6efd1df0f` and bazel 5.1.1.
Hello, Since I upgraded my Scala rules (last version known to work was 21c8913a2cf35130870df9f07a781afc77f33693, from last March), I cannot compile anymore my Thrift services with Scrooge. Creating `scrooge_scala_library` when the...