Using Bzlmod
Paste this snippet into your MODULE.bazel
file:
# Set `repo_name = "io_bazel_rules_scala"` if you still need it.
bazel_dep(name = "rules_scala", version = "7.0.0")
Using WORKSPACE
Paste this snippet into your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_scala", # Can be "io_bazel_rules_scala" if you still need it.
sha256 = "a4700d6e6cdf13cf85e29029ec998e2ec3ba94791606ec83d2c96e3c5b0aebed",
strip_prefix = "rules_scala-7.0.0",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v7.0.0/rules_scala-v7.0.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
- Updated artifact versions with sha sums and scala versions by @lm1nrt in #1597
- [bugfix] normalize paths to enable running external tests by @joeljeske in #1598
- Handle incorrect Scalac options and prevent printing ScalacWorker stacktraces by @WojciechMazur in #1606
- Scala 3.4.3 support by @lm1nrt in #1603
- extra javac opts should override default ones by @thomasbao12 in #1613
- Add netrc support for downloading sources by @grepwood in #1609
- Fix Bazel 7 related protobuf build failures by @mbland in #1620
- Bazel 7 compatibility updates by @mbland in #1619
- Scala 3.5.0 support by @lm1nrt in #1604
- Build against latest bazel version instead of last_green by @simuons in #1627
- Automated creating and updating scala_x_x.bzl repository files by @lm1nrt in #1608
- Bump to com.google.protobuf:protobuf-java:4.28.2 by @mbland in #1624
- Update test scripts for Bzlmod compatibility by @mbland in #1622
- Bump to rules_proto 6.0.2, separate protobuf 21.7 by @mbland in #1623
- Use custom repo rule to generate @scalafmt_default by @mbland in #1626
- Update dependencyanalyzer3 for Scala 3.5 by @mbland in #1628
- Collect diagnostics in Scala 3 by @WojciechMazur in #1611
- Update repo name handling for Bzlmod compatibility by @mbland in #1621
- Catch Throwable in ExtraProtobufGenerator by @mbland in #1630
- Add tools/sync-bazelversion.sh, commit results by @mbland in #1629
- Add CommandLineParserAdapter for >=2.13.9 by @mbland in #1634
- Update latest Scala 2 and Scala 3 versions by @WojciechMazur in #1636
- Create the
@scala_compiler_sources
repo by @mbland in #1635 - Update to Scalafmt 3.8.3 by @mbland in #1631
- Fix
dt_patches/dt_patch_test.sh
for Scala 2.13.0 by @mbland in #1632 - Refactor
scripts/create_repository.py
, fix some issues by @mbland in #1639 - Move Throwable catch to ExtraProtobufGenerator.run by @mbland in #1637
- Port DependencyAnalyzer plugin to Scala 3 by @WojciechMazur in #1640
- Make scala_xxx rules declare that they provide JavaInfo by @crt-31 in #1643
- Refactor
scripts/create_repository.py
, improve efficiency and correctness, and bump Scalatest, protobuf-java, kind-projector by @mbland in #1642 - Make every .bazelrc import the top level .bazelrc by @mbland in #1644
- Pass rlocationpaths to Test Runner by @crt-31 in #1645
- Clean
test_{runner,scalafmt_helper}
, add diagnostic env vars, and improvetest_cross_build
performance by @mbland in #1646 - Bump ScalaPB, protoc-bridge, gRPC, and Guava deps, and add
ProtobufAdapter
s andScalaPBCodeGenerator
wrappers by @mbland in #1648 - Toolchainize //scala:toolchain_type by @mbland in #1633
- Replace apparent_repo_name with repo rule wrappers by @mbland in #1650
- Add dt_patches/compiler_sources repo by @mbland in #1654
- Bump protobuf-java to 4.29.0 by @mbland in #1655
- Extract
dev_deps_repositories()
from WORKSPACE and remove//private
by @mbland in #1656 - Fix windows Buildkit CI by @crt-31 in #1649
- Set latest Bazel build to 7.x after 8.0.0 release by @mbland in #1671
- Add Scala 3.6.2 support by @WojciechMazur in #1672
- Toolchainize all testing toolchains by @mbland in #1653
- Move
rules_scala_dependencies
to scala/deps.bzl by @mbland in #1660 - Toolchainize //scala/scalafmt:scalafmt_toolchain by @mbland in #1678
- Upgrade Scala 3.6 to 3.6.3 by @WojciechMazur in #1682
- Bump
protoc-bridge
to 0.9.8 for Scala >= 2.12 by @mbland in #1688 - Upgrade Scala 3 LTS to 3.3.5 by @WojciechMazur in #1689
- Add Yobi.ai to adopters by @FrankPortman in #1683
- Throw a more informative error when scala_macro_library isn't used by @jadenPete in #1680
- Enable scala_macro_library targets to have dependencies by @jadenPete in #1681
- Toolchainize //scala_proto:{,deps_}toolchain_type by @mbland in #1687
- Bump several Maven artifacts, Go by @mbland in #1690
- Toolchainize //jmh/toolchain:jmh_toolchain_type by @mbland in #1691
- refactor scalac java_binary target creation by @gergelyfabian in #1677
- Toolchainize twitter_scrooge by @mbland in #1693
- Use rctx.original_name if available, Go 1.23.6 by @mbland in #1694
- Bump Scalafmt from 3.8.3 to 3.8.6 by @mbland in #1692
- Remove @io_bazel_rules_scala or replace with Label by @mbland in #1696
- Bump
rules_go
, Go,proto-google-common-protos
by @mbland in #1698 - Upgrade Scala 2.13 LTS to 2.13.16 by @bartoszkosiorek in #1700
- Fix scala_proto_library default outputs by @simuons in #1701
- Bump Scalafmt from 3.8.6 to 3.9.1 by @mbland in #1708
- Fix
setup_scala_testing_toolchain()
classpaths by @mbland in #1707 - Update docs for version 7.0.0, remove old APIs by @mbland in #1703
- Rename
{io_bazel_,}rules_scala_config
by @mbland in #1709 - 7.0.0 README updates and minor code changes by @mbland in #1714
- Add
examples/overridden_artifacts
and test by @mbland in #1713 - Upgrade Scala 3.6 to 3.6.4 by @WojciechMazur in #1715
- Bazel 7 and MSVC compatible version updates by @mbland in #1711
- Fix silently broken
test_version.sh
tests by @mbland in #1716 - Bump Bazel, Scalafmt, Guava, sbt, gRPC, proto-java by @mbland in #1720
- Add Java 24 compatibility by @srdo-humio in #1719
- Cleanup WorkerTest after SecurityManager was removed by @simuons in #1721
- feat: bit more configurable proto toolchain by @kczulko in #1718
- Bazel 8 +
rules_java
8 updates, protoc toolchain by @mbland in #1710 - Enable Bzlmod by @mbland in #1722
- Add src/... to test_rules_scala, fix Windows break by @mbland in #1724
- Bump Bazel, rules_*, Guava, Go, golang tools, etc. by @mbland in #1727
- Remove
Label
wrappers for target string literals by @mbland in #1728 - Replace
@scalafmt_default
with toolchains target by @mbland in #1725 - Establish minimum compatible Bazel, dep versions by @mbland in #1726
- Use the Publish to BCR reusable GitHub workflow by @mbland in #1731
- Add toolchain options API to WORKSPACE and Bzlmod by @mbland in #1730
- Bump dependency versions by @mbland in #1732
- Add test_dependency_versions, update test_runner by @mbland in #1729
- Add Scala 3.7.0 by @WojciechMazur in #1733
- Add Airbnb as adopter by @thomasbao12 in #1612
- Fix Scalafmt
default_config
docs forWORKSPACE
by @mbland in #1734 - Upgrade Scala 3.3.5 -> 3.3.6 by @WojciechMazur in #1735
- Fixing release workflow by @simuons in #1736
New Contributors
- @lm1nrt made their first contribution in #1597
- @joeljeske made their first contribution in #1598
- @WojciechMazur made their first contribution in #1606
- @thomasbao12 made their first contribution in #1613
- @grepwood made their first contribution in #1609
- @mbland made their first contribution in #1620
- @FrankPortman made their first contribution in #1683
- @jadenPete made their first contribution in #1680
- @bartoszkosiorek made their first contribution in #1700
- @kczulko made their first contribution in #1718
Full Changelog: v6.6.0...v7.0.0