rules_scala
rules_scala copied to clipboard
Scala rules for Bazel
1. Have an independent macro that users set up in addition to their `scalafmt_scala_library` targets which looks something like: ``` def scala_fmt_test(name,target): native.sh_test( name = name + "_scala_fmt_test", srcs =...
It seems that if I have a `library` target, the `library_deploy.jar` target will differ if I'm currently running tests with `bazel test ...` vs. `bazel coverage ...`. Looking at the...
### Description This PR adds an flag to enable the [SemanticDB](https://scalameta.org/docs/semanticdb/guide.html) compiler plugin during Scala compilation. The SemanticDB compiler adds overhead to compilation so it should be disabled by default....
This avoids needing to vendor our own copy.
Is there a way to provide parameters for the scalatest runner like in: https://www.scalatest.org/user_guide/using_the_runner When using rule `scala_test`. I'd be specifically interested in using the following option: `-C com.company.project.BarReporter`
### Problem `java_library` and `scala_library` produce jars with different layout for the same resources. Note this only happens for certain path patterns, such as a path contains `resources/` and `src/test/resources/`...
Hi, Java rules has this useful ability to add manifest lines: https://bazel.build/versions/master/docs/be/java.html#java_binary.deploy_manifest_lines Our rules (`scala_binary` and `scala_test`) lack this property. We need to allow this behavior to happen in our...
Hi, How can i assemble and generate script, like this: https://github.com/sbt/sbt-assembly#prepending-a-launch-script With pure scala/sbt we use this commands: https://github.com/cross-language-cpp/djinni-generator/blob/1fae66379760dd0ed3dc246265bf93a61d6222a5/.github/workflows/release.yaml#L22-L39 Im converting from sbt to use bazel. We already build with...
### Problem On master: ``` $ bazel build test:ScalaLibResources ... $ unzip -Z1 bazel-bin/test/ScalaLibResources.jar META-INF/ META-INF/MANIFEST.MF scalarules/ scalarules/test/ scalarules/test/ScalaLibResources$.class scalarules/test/ScalaLibResources.class scalarules/test/byes scalarules/test/hellos test/ test/data/ test/data/some.txt ``` Now, remove the srcs...
In the change i made to make these rules aspect based previously it has blocked/made difficult some of scalapb's options that don't translate well into aspects (and aren't supported in...