bazelbuild / rules_scala

Scala rules for Bazel
Apache License 2.0
359 stars 266 forks source link

JacocoRunner script: update for Jacoco 0.8.11 and Bazel 7.0.2 #1567

Closed gergelyfabian closed 3 months ago

gergelyfabian commented 3 months ago

rules_scala has issues with coverage on JDK 21.

Bazel has solved this in https://github.com/bazelbuild/bazel/issues/20845 by upgrading Jacoco and ASM.

Added option to build JacocoRunner for Bazel 7, the version with fix will be used with Jacoco interface changes. Jacoco upgraded to 0.8.11 (including the Jacoco/Bazel branches used for that).

gergelyfabian commented 3 months ago

This is a workaround for #1521, and otherwise also useful upgrade.

gergelyfabian commented 3 months ago

Even though Bazel 7.1.0 seems to solve the original issue that motivated this upgrade, that release does not have the Jacoco and ASM upgrade when using it for building the jacocorunner.

gergelyfabian commented 3 months ago

Even though Bazel 7.1.0 seems to solve the original issue that motivated this upgrade, that release does not have the Jacoco and ASM upgrade when using it for building the jacocorunner.

So I'll leave the Bazel branch as is.