Releases: bazelbuild/rules_scala
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
v5.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 = "141a3919b37c80a846796f792dcf6ea7cd6e7b7ca4297603ca961cd22750c951",
strip_prefix = "rules_scala-5.0.0",
url = "https://github.com/bazelbuild/rules_scala/archive/refs/tags/v5.0.0.tar.gz",
)
See https://github.com/bazelbuild/rules_scala#getting-started for full setup instructions.
What's Changed
- Add initial repositories for Scala 3.1 by @liucijus in #1342
- Update buildkite jobs by @liucijus in #1345
- Fix org_typelevel__cats_core checksum for 2.13 by @liucijus in #1346
- Tweaks to
scalafmt
rules/script to supportbazel test
wrappers by @virusdave in #1344 - update default
scalafmt
phase order; place beforerunfiles
by @virusdave in #1347 - Fix Bazel latest and 5.0.0 Buildkite jobs by @liucijus in #1348
- Update latest Bazel build to latest green head build by @liucijus in #1349
- Update scrooge support code to compile with Scala 3 by @liucijus in #1350
- Update scripts workers to be compatible with Scala 3 by @liucijus in #1352
- Update scalac opts in test reporter to support Scala 3 by @liucijus in #1353
- Update jmh support to be compatible with Scala 3 by @liucijus in #1351
- Update scalafmt worker to be compatible with Scala 3 by @liucijus in #1354
- Scala 3 minimal support by @liucijus in #1355
- Move ScalaTest deps to its own repository macro by @liucijus in #1356
- Clean up versions tests by @liucijus in #1357
- set -e for ctx.actions.run_shell commands by @simuons in #1360
- Fix deprecation warning in ScalaPBWorker by @simuons in #1367
- Scalatest version bump to 3.2.9 by @justinass-wix in #1368
- Use java_common.stamp_jar to stamp scala_import jar by @liucijus in #1372
- Justinass/dep analyzer by @justinass-wix in #1370
- Allow per-target java runtime selection for scala_junit_tests by @wiwa in #1373
- Single-jar pack_sources should conform to Bazel behavior by @wiwa in #1378
- Take --instrumentation_filter into account in coverage phase by @fmeum in #1377
- Add runtime_jdk to scala_binary by @wiwa in #1380
- Create jdeps output from classpath entries by @liucijus in #1376
- Allow
scala_junit_tests
targets to specify test environment variables by @wiwa in #1384 - Consistent argsfile parsing by @wiwa in #1385
- Revert "Create jdeps output from classpath entries (#1376)" by @liucijus in #1388
- Use a public java_compile_toolchain attr instead of _java_toolchain by @wiwa in #1389
- scala_doc: Use param file to build scaladocs by @rahuliyer95 in #1390
- Expose
_source_jars
output group inscala_import
by @Duhemm in #1394 - JacocoRunner script: update for Bazel 5.0+ by @gergelyfabian in #1399
- feat: added support for inherited_environment in scala_test rule by @omerlh in #1401
- Fix JacocoInstrumenter compilation with JDK 13+ by @dmivankov in #1402
- scala_doc: Export ScaladocAspectInfo to allow users to build custom scaladoc aspects by @rahuliyer95 in #1404
- Fix rules_scala JDK lookup when using --nolegacy_external_runfiles. by @srdo-humio in #1397
- Declare non-windows executable with .sh extension by @wiwa in #1407
- Put -s in front of other parameters for the ScalaTest runner. by @srdo-humio in #1412
- Fix aspect test to recognize
@//
labels by @Wyverald in #1417 - Fix test_scala_proto_library to accept @-prefixed labels by @Wyverald in #1418
- Make 5.3.1 minimal supproted version by @liucijus in #1423
- Cleanup Bazel 5.2 test by @liucijus in #1426
- Allow scala_benchmark_jmh to specify a runtime_jdk version by @wiwa in #1424
- Update Coverage test data to Bazel 5.3.1 by @liucijus in #1427
- Test examples with Bazel 5.3.1 by @liucijus in #1428
- docs: fix broken links by @tanishiking in #1429
- fix: enable to override JAVABIN of wrapper script by @tanishiking in #1432
- Extract scalacopts phase by @liucijus in #1435
- Suppress warning and enable to use dependency_tracking with
-Werror
by @tanishiking in #1433 - Validate repository Scala version against scala_config by @liucijus in #1436
- Fix setup guide in readme by @simuons in #1444
- Revert "Declare non-windows executable with .sh extension" by @ittaiz in #1446
- Update example Rules Scala setup macros by @liucijus in #1438
- Update Rules Scala commit in README instructions by @liucijus in #1447
- java_stub_template to use argument file instead of classpath jar by @ittaiz in #1410
- Fix resource priority under name collision by @tanishiking in #1456
- add tagged release workflow using github actions by @jvandew in #1452
- Simplify setup of scala_toolchain and its deps by @liucijus in #1439
- Add setup testing toolchain macro by @liucijus in #1451
- phase_merge_jars: refactor to separate function that merges jars to o… by @gergelyfabian in #1403
- Fix toolchain type reference by @tgeng in #1460
- Update to be removed "host" cfg to "exec" by @liucijus in #1462
- Replace zipper with singlejar by @simuons in #1463
New Contributors
- @virusdave made their first contribution in #1344
- @justinass-wix made their first contribution in #1368
- @wiwa made their first contribution in #1373
- @fmeum made their first contribution in #1377
- @Duhemm made their first contribution in #1394
- @omerlh made their first contribution in #1401
- @dmivankov made their first contribution in #1402
- @srdo-humio made their first contribution in #1397
- @Wyverald made their first contribution in #1417
- @tanishiking made their first contribution in #1429
- @jvandew made their first contribution in #1452
- @tgeng made their first contribution in #1460
Full Changelog: 2022020...v5.0.0