bazelbuild / rules_scala

Scala rules for Bazel
Apache License 2.0
359 stars 266 forks source link

Don't rely on global `SCALA_VERSION` in BUILD files, use select instead #1564

Closed aszady closed 3 months ago

aszady commented 3 months ago

Description

The second part (after #1559) of eliminating dependencies on SCALA_VERSION. This time within target attributes. Together with #1560 we should be all done.

This change extensively uses the new select_for_scala_version macro (#1563). I tried my best to emerge the most correct intention, but in many cases the choice is rather arbitrary (e.g. any_2 + any_3 vs. before_3 + since_3 vs. any_2 + default)

Motivation

1290.

liucijus commented 3 months ago

Thanks, @aszady!