-
-
Notifications
You must be signed in to change notification settings - Fork 289
Description
There was a thread on Bazel slack some weeks back asking about options for BUILD file generation with Scala. There are at least 3 options that came up there:
- stackb's gazelle plugin
- netflix's bzl-gen-build tool
- foursquare's gazelle plugin (I am a maintainer of this one)
I wanted to at least start a discussion about whether there is any appetite for upstreaming a solution for this... I am obviously biased towards the Foursquare plugin -- it is fast, battle tested in 2 of our repos on ~2M lines of Scala code, Gazelle is the general Bazel tool of choice here, and it has someone willing to put the effort into seeing it adopted (me) -- but Scala is one of the last major Bazel rulesets without an "official" solution for BUILD generation, so it would be awesome to see anything gain traction. To my knowledge there is nothing with meaningful community adoption currently.
There is maybe also an open question as to whether this discussion makes more sense here or in rules_jvm, as a Scala Gazelle plugin could in theory share logic with the existing Java plugin for, e.g., handling Maven jars. But I figured here is as good a place as any to start 😄