forked from bazelbuild/rules_scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JacocoRunner script: update for Bazel 5.0+
Upgraded jacoco package name for Bazel 5.0+. Upgraded jacoco from 0.8.3 to 0.8.6. Jacoco upgrade to 0.8.6 was made in Bazel in: bazelbuild/bazel#11674 bazelbuild/bazel@cb7c1a2 Removed options for workarounds where those have been fixed in the meantime: Bazel's handling for branch coverage was fixed in: bazelbuild/bazel#12696
1 parent
de3d3a7
commit 667b9ff
Showing
2 changed files
with
16 additions
and
47 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
scripts/build_jacocorunner/0001-Build-Jacoco-for-Bazel.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
From d4e6b4455e516e3a35058064d32979979cc4f80c Mon Sep 17 00:00:00 2001 | ||
From 712d62a8238f3a7fe51e1cf4cc2520b5f249e1d3 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Gergely=20F=C3=A1bi=C3=A1n?= <gergo.fb@gmail.com> | ||
Date: Fri, 18 Dec 2020 11:43:59 +0100 | ||
Subject: [PATCH 1/2] Build Jacoco for Bazel | ||
Subject: [PATCH] Build Jacoco for Bazel | ||
|
||
--- | ||
org.jacoco.build/pom.xml | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/org.jacoco.build/pom.xml b/org.jacoco.build/pom.xml | ||
index edb2d126..fcb57f55 100644 | ||
index 8aae1543..067cc6a7 100644 | ||
--- a/org.jacoco.build/pom.xml | ||
+++ b/org.jacoco.build/pom.xml | ||
@@ -646,7 +646,7 @@ | ||
@@ -706,7 +706,7 @@ | ||
project.getProperties().setProperty("build.date", buildDate); | ||
|
||
buildNumber = project.getProperties().get("buildNumber"); | ||
- pkgName = buildNumber.substring(buildNumber.length() - 7, buildNumber.length()); | ||
+ pkgName = "1f1cc91"; | ||
+ pkgName = "b864216"; | ||
project.getProperties().setProperty("jacoco.runtime.package.name", "org.jacoco.agent.rt.internal_" + pkgName); | ||
]]> | ||
</script> | ||
|
||
void loadLicense(String libraryId) { | ||
-- | ||
2.25.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters