Releases: bazel-contrib/rules_scala
v7.0.0
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 https://github.com/ba...
v6.6.0
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
v6.5.0
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 = "3b00fa0b243b04565abb17d3839a5f4fa6cc2cac571f6db9f83c1982ba1e19e5",
strip_prefix = "rules_scala-6.5.0",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v6.5.0/rules_scala-v6.5.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
- Support Scala 3.3.1 by @lukaszrola in #1542
- Added windows task to CI by @crt-31 in #1536
- Bump scalafmt version by @mateuszkuta256 in #1543
- Fix checksum io_bazel_rules_scala_scala_parallel_collections in Scala3.3 by @lukaszrola in #1544
- Remove binary artifacts due to security policy violation by @mateuszkuta256 in #1538
- Use worker proto from @bazel_tools by @illicitonion in #1330
- Fix to close the compiler object in scalacinvoker by @crt-31 in #1545
- Add VirtusLab as adopter by @romanowski in #1547
- Don't output unused dependency messages when compilation fails by @laurynaslubys in #1548
- Conditionally set -Djava.security.manager=allow for jdk >= 17 by @simuons in #1555
- Handle the removal of to_proto and to_json from struct by @c-mita in #1554
- fix typo in example tests (Exmaple => Example) by @KevinBoyette in #1553
- Introduce
SCALA_VERSIONS
by @aszady in #1557 - Introduce build setting for current Scala version by @aszady in #1558
- Don't rely on
SCALA_VERSION
in phases by @aszady in #1559 - Make scala_proto_aspect have "provides = [ScalaProtoAspectInfo]" by @timothyg-stripe in #1549
- Make scrooge_*_aspect have "provides = [ScroogeAspectInfo]" by @timothyg-stripe in #1565
- Build with JDK 21 by @simuons in #1556
- Bind toolchains to Scala version by @aszady in #1566
New Contributors
- @lukaszrola made their first contribution in #1542
- @mateuszkuta256 made their first contribution in #1543
- @romanowski made their first contribution in #1547
- @c-mita made their first contribution in #1554
- @KevinBoyette made their first contribution in #1553
- @aszady made their first contribution in #1557
- @timothyg-stripe made their first contribution in #1549
Full Changelog: v6.4.0...v6.5.0
v6.4.0
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 = "9a23058a36183a556a9ba7229b4f204d3e68c8c6eb7b28260521016b38ef4e00",
strip_prefix = "rules_scala-6.4.0",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v6.4.0/rules_scala-v6.4.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
- doc: Register proto toolchain for simple usage by @honnix in #1531
- Use tagged Rules Scala release in README.md by @liucijus in #1533
- Add jdk toolchain type to proto rules by @liucijus in #1534
- Change SemanticdbInfo.plugin_jar from string to File by @crt-31 in #1530
- Fix diagnostic outputs for Scala 2.12.13 by @aishfenton in #1532
- Make tests pass on Windows by @crt-31 in #1529
New Contributors
- @honnix made their first contribution in #1531
- @aishfenton made their first contribution in #1532
Full Changelog: v6.3.0...v6.4.0
v6.3.0
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 = "7adaec1cc787ca1519550e71dbd0cb9c149ee1b06f04ba91dda07c12483aae57",
strip_prefix = "rules_scala-6.3.0",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v6.3.0/rules_scala-v6.3.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
- Bazel 7.0 rc2 support by @gergelyfabian in #1524
- Fix diagnostics for Scala 2.13.12 by @scoquelin in #1522
Full Changelog: v6.2.1...v6.3.0
v6.2.1
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 = "71324bef9bc5a885097e2960d5b8effed63399b55572219919d25f43f468c716",
strip_prefix = "rules_scala-6.2.1",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v6.2.1/rules_scala-v6.2.1.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
Full Changelog: v6.2.0...v6.2.1
v6.2.0
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 = "ae4e74b6c696f40544cafb06b26bf4e601f83a0f29fb6500f0275c988f8cfe40",
strip_prefix = "rules_scala-6.2.0",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v6.2.0/rules_scala-v6.2.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
- singlejar executable from specified java compile toolchain by @simuons in #1511
- Upgrade scala 2.12.x and 2.13.x versions by @scoquelin in #1515
- Add support for netrc in jvm_maven_import_external by @dmivankov in #1509
- Add SemanticDB support - cont. by @crt-31 in #1508
- Fix semanticdb-scalac checksums for Scala 2.12.18 and 2.13.11 by @scoquelin in #1518
- Upgrade Scala 2.13.12 and fix compilation issues in reporters by @scoquelin in #1517
- JacocoRunner script: update for Bazel 6.0+ by @gergelyfabian in #1516
New Contributors
- @scoquelin made their first contribution in #1515
Full Changelog: v6.1.0...v6.2.0
v6.1.0
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 = "cc590e644b2d5c6a87344af5e2c683017fdc85516d9d64b37f15d33badf2e84c",
strip_prefix = "rules_scala-6.1.0",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v6.1.0/rules_scala-v6.1.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
New Contributors
Full Changelog: v6.0.0...v6.1.0
v6.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 = "io_bazel_rules_scala",
sha256 = "d39aceb39808da3ee5d84f8d6e460be0568e946da71698fc1414fc696765200a",
strip_prefix = "rules_scala-6.0.0",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v6.0.0/rules_scala-v6.0.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
Full Changelog: v5.1.0...v6.0.0
v5.1.0
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 = "6982e330f48517461f231ea596bd93416200286ab73fc070a11052496689f0ee",
strip_prefix = "rules_scala-5.1.0",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v5.1.0/rules_scala-v5.1.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
- Bump jmh version: 1.20 -> 1.36 by @dkomanov in #1466
- Fix external name in workspace snippet by @liucijus in #1469
- Tracking implicit compiler dependencies by @liucijus in #1459
- Add exec transition to scala_test _lcov_merger by @thirtyseven in #1474
- Update release workflow with a stable archive by @liucijus in #1473
- Add support for Scala 3.2 by @meisam in #1465
- Fix dead link in readme by @hanneskaeufler in #1476
- Update rule dependencies by @liucijus in #1478
- Fixing JacocoRunner building script for Jacoco by @gergelyfabian in #1485
- Catch macro expansion exceptions in ScalacWorker by @thirtyseven in #1489
- Improve scala_config() documentation in README.md by @kolotyluk in #1494
- Handle StackOverflowError in macros by @thirtyseven in #1491
- Allow user to provide scalac source jar for "ast-plus" dependency tracking feature by @thirtyseven in #1493
- Mark unused deps as ignored for mixed source targets by @liucijus in #1499
- Replace relative paths to ../ with external/ by @prebeta in #1500
- Add support for Scala 3.3 LTS by @csubj in #1501
- For Windows: Fix to enable scala_test and scala_binary outputs to be executed on Windows by @crt-31 in #1502
- Make DepsTrackingReporter handle Windows path separators by @crt-31 in #1503
- call close() on compiler in scalacWorker after each job by @crt-31 in #1504
- Register java toolchain inside rules_scala by @kotlaja in #1505
New Contributors
- @thirtyseven made their first contribution in #1474
- @meisam made their first contribution in #1465
- @hanneskaeufler made their first contribution in #1476
- @kolotyluk made their first contribution in #1494
- @csubj made their first contribution in #1501
- @crt-31 made their first contribution in #1502
- @kotlaja made their first contribution in #1505
Full Changelog: v5.0.0...v5.1.0