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