rules_scala
rules_scala copied to clipboard
Scala rules for Bazel
From what I understand, there are 2 (independent? complementary?) paths to create a custom `twitter_scrooge` toolchain. You can either invoke `setup_scrooge_toolchain` or use the tag class a la `scala_deps.twitter_scrooge(libthrift =...
### Description From my [comment](https://github.com/bazelbuild/rules_scala/issues/1657#issuecomment-2560292192) in https://github.com/bazelbuild/rules_scala/issues/1657: > From what I understand, though, TASTy markes a major shift in how type information is stored between compiler invocations from Scala 2.13's...
I was trying to use bazel modules for rules_scala, it throws below error bazel_dep(name = "rules_scala", version = "7.0.0") register_toolchains("@rules_scala//testing:testing_toolchain") register_toolchains("@rules_scala//testing:scalatest_toolchain") register_toolchains("@rules_scala//testing:specs2_junit_toolchain") register_toolchains("@rules_scala//testing:junit_toolchain")` ``` ERROR: no such package '@@rules_scala++scala_deps+rules_scala_toolchains//testing': BUILD...
The `ast-plus` tracking mode added in #1459 is missing documentation. There is not mention in the docs about the behaviour of this mode
The built in [java_library](https://docs.bazel.build/versions/master/be/java.html#java_library) rule has support for [java_plugins](https://docs.bazel.build/versions/master/be/java.html#java_plugin) by way of the `plugins` attribute. scala_library also has a `plugins` attribute but I believe its only intended for scalac plugins,...
With Scala 2.13.16 if you try inlining code that has been added to your classpath as an ijar/hjar it throws an exception: ``` error: java.lang.IndexOutOfBoundsException at scala.tools.asm.tree.InsnList.get(InsnList.java:94) at scala.tools.nsc.backend.jvm.analysis.BackendUtils$.computeMaxLocalsMaxStack(BackendUtils.scala:728) at...
As a side quest to #1482, I've been experimenting with trying to update the [Protobuf library](https://github.com/protocolbuffers/protobuf) beyond [version 21.7](https://github.com/protocolbuffers/protobuf/releases/tag/v21.7), released 2022-09-29. The reason is that I anticipate potential complications after...
I recognize the perhaps conflict of interest in this request but for me to migrate to Bazel, I'd need to be able to continue to build and release SBT plugins...
## Summary Our repo uses `java_test` for running tests written in Scala (some are Scalatests with a JUnit runner, some are vanilla JUnit). We've noticed that `scala_library` targets remain completely...
I have a bazel project (currently on Bazel 6.4.0) using `rules_scala` where we need to produce jars on java language version 8, but we'd like to move up the Java...