rules_scala icon indicating copy to clipboard operation
rules_scala copied to clipboard

Scala rules for Bazel

Results 199 rules_scala issues
Sort by recently updated
recently updated
newest added
trafficstars

### Description This is the first step of migration to Bzlmod, see https://bazel.build/external/migration I'm gonna create a few further pull requests to bring all the changes described here: https://github.com/bazelbuild/rules_scala/issues/1482#issuecomment-1907672400 The...

### Description ScalacWorker.java uses the Java Security Manager to trap calls to System.exit(). In JDK 18+, enabling the security manager is disallowed by default, so a flag must be passed...

Greetings! It looks like rules_scala isn't part of the [Bzlmod](https://bazel.build/external/overview#bzlmod) effort or added to [bazel-central-registry](https://registry.bazel.build/search?q=rules_scala) yet. I've opened an issue both here and in https://github.com/bazelbuild/bazel-central-registry to request it: https://github.com/bazelbuild/bazel-central-registry/issues/522

help wanted

When running rules_scala (trying to compile some Scala code) with JDK 21, I receive the following exception: ``` Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will...

Stripe's Scala team has an intern, and this quarter we're planning work that requires SemanticDB outputs! I believe SemanticDB support can be easily encapsulated in a new optional phase that:...

we have two tests `core/src/test/scala/integration/kafka/api/MetricsTest.scala` `core/src/test/scala/unit/kafka/metrics/MetricsTest.scala` We have one BUILD.bazel file under the root of `core` and `scala_library` will create two targets for this two files `//core:src/test/scala/integration/kafka/api/MetricsTest_lib`, `//core:src/test/scala/unit/kafka/metrics/MetricsTest_lib`. It seems...

When running a target like this: ``` # Important to clean, as the files can stay from a previous bazel build with a lower Bazel version. bazel clean bazel run...

JDK 17 [strongly encapsulates JDK internals](https://openjdk.org/jeps/403), so many libraries need `--add-opens=` and `--add-exports=` JVM flags. Bazel's Java rules support adding those flags through `java_library(add_opens = [...], add_exports = [...])`, and...

This is a friendly reminder about [SIP-51](https://docs.scala-lang.org/sips/drop-stdlib-forwards-bin-compat.html), a proposal to drop forward compatibility in Scala 2.13.x and [discussion thread][6354] going on in the Contributors forum. Traditionally scala-library on Scala 2.13.x...

Sometimes (I'm not exactly sure when) I get this error ``` INFO: From Building external/io_bazel_rules_scala/src/java/io/bazel/rulesscala/scalac/compileoptions/libcompileoptions.jar (1 source file) [for tool]: warning: [path] bad path element "/home/andrzej/.cache/bazel/_bazel_andrzej/1461474fe51fd6c7086e2f5e78bc7f9e/execroot/__main__/bazel-out/k8-opt-exec-2B5CBBC6/bin/external/io_bazel_rules_scala_scala_compiler/io_bazel_rules_scala_scala_compiler.stamp/scala-reflect.jar": no such file or...