Skip to content

Commit

Permalink
Shade com.google.common.** in the Jacoco test runner.
Browse files Browse the repository at this point in the history
This isolates the Bazel coverage runner's version of Guava from the
user's.

Resolves bazelbuild#12998

Testing Done:
- Verified `bazel coverage` worked against a crufty internal target
  using this patch with java_tools javac11-10.5 and Bazel 4.0.0.
- `bazelisk build src:java_tools.zip`; manual inspection of
  `JacocoCoverage_jarjar_deploy.jar`.

Closes bazelbuild#12999.

PiperOrigin-RevId: 360643918
  • Loading branch information
rbeasley authored and copybara-github committed Mar 3, 2021
1 parent 120ea6c commit ce7afe7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
rule com.google.common.** com.google.testing.coverage.jarjar.@0
rule org.apache.commons.** com.google.testing.coverage.jarjar.@0
rule org.objectweb.asm.** com.google.testing.coverage.jarjar.@0

0 comments on commit ce7afe7

Please sign in to comment.