Using WORKSPACE
Paste this snippet into your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_scala",
sha256 = "e734eef95cf26c0171566bdc24d83bd82bdaf8ca7873bec6ce9b0d524bdaf05d",
strip_prefix = "rules_scala-6.6.0",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v6.6.0/rules_scala-v6.6.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
- JacocoRunner script: update for Jacoco 0.8.11 and Bazel 7.0.2 by @gergelyfabian in #1567
- Move default toolchain dependencies logic to .bzl file by @aszady in #1561
- Allow version-aware naming for artifact repositories by @aszady in #1562
- Provide
select_for_scala_version
utility macro by @aszady in #1563 - Allow transitioning Scala version with
scala_version
attribute of rules by @aszady in #1569 - Use version-aware naming for
scala_compiler_source
repository by @aszady in #1560 - Don't rely on global
SCALA_VERSION
in BUILD files, use select instead by @aszady in #1564 - Propagate maven_coordinates tag to generated scala_import so pom generation includes the dependency by @vinnybod in #1568
- Use version-aware naming for artifact repositories by @aszady in #1573
- Download artifacts for all
SCALA_VERSIONS
by @aszady in #1574 - Fix the remaining default providers in
setup_scala_toolchain
by @aszady in #1577 - Semanticdb clear dir by @crt-31 in #1580
- Build and register toolchains for all
SCALA_VERSIONS
by @aszady in #1578 - Use JDK Throwable.printStackTrace by @srdo-humio in #1583
- Make scaladoc rule handle transient deps better (and add some tests) by @crt-31 in #1584
- Allow configuring multiple Scala versions by @aszady in #1579
- Add a few cross-build examples by @aszady in #1587
- Tests with version-specific codes by @aszady in #1586
- Documentation update after development of the cross-build by @aszady in #1588
- Add scalafmt test with multiple Scala versions by @aszady in #1589
- Check if java_runtime.version is available by @kmate-ct in #1591
- Make suffixed scala version config setting publicly visible by @kmate-ct in #1592
New Contributors
Full Changelog: v6.5.0...v6.6.0