rules_scala
rules_scala copied to clipboard
Scala rules for Bazel
WIP - Create rule for a `scala_service_provider`
### Description A `scala_service_provider` is like a `scala_library`, excepts it exports a list of implementations for a number of services in its output jar. Use the phases mechanism to wrap...
FileAlreadyExistsException during proto compilation
Hello! I've tried to use latest `rules_scala` version (`8092d5f6165a8d9c4797d5f089c1ba4eee3326b1`) and faced an interesting problem: during proto compilation of independent rules bazel if both are depending on some common protobuf (like...
Copying from https://github.com/bazelbuild/rules_python/pull/334 by @alexeagle > _See [building-a-strong-community/using-templates-to-encourage-useful-issues-and-pull-requests](https://docs.github.com/en/github/building-a-strong-community/using-templates-to-encourage-useful-issues-and-pull-requests)_ > > _This will ask users filing an issue to indicate if it's a bug or a feature request and prompt them...
Tracking issue- move from deps to toolchains
Description: We'd like to move from using the deps/repositories pattern and bind to toolchains. A great deal of the work has been done in #399 #530 and finally in #544...
### Problem Currently, the `twitter_scrooge` code uses aspects to traverse the thrift dependencies of a scrooge target, generating and compiling jvm code: https://github.com/bazelbuild/rules_scala/blob/master/twitter_scrooge/twitter_scrooge.bzl#L265 Adding additional languages however, requires some more...
Be able to generate service provider configuration for targets that host service implementations
### Description of the problem / feature request: Be able to generate service provider configuration for targets that host service implementations. This automates maintenance of jvm service provider configuration files...
Insulate toolchain options from breaking rules_scala bootstrap code
Downstream workspaces using a custom Scala toolchain can't use the `scala_test` rule with certain Scala compiler flags enabled. It seems custom Scala toolchains will be used to compile the bootstrapping...
per-target dependency options
I have scala targets that rely on `dependency_mode = "plus-one"` to compile. For example, one target depends on circe-derivation and uses the deriveEncoder macro from it, which expands to a...
Currently, the mechanism we use to test `WORKSPACE` customizations is the tesd `./test_version.sh`, which populates a template workspace and executes Bazel tests there. Recently, we have needed to add some...
Generic scala_test rule
### Description Adds a new `scala_test` rule that supports the SBT testing interface. Initially I would like to have the rule merged as "experimental" or "unstable" so folks can begin...