Skip to content

Commit

Permalink
Remove jacoco-rt from the bazel binary.
Browse files Browse the repository at this point in the history
This change shrinks the bazel binary by ~1M:

```
$ ls -lh ~/bazel-with-jacoco | cut -d' ' -f5
48M
$ ls -lh ~/bazel-without-jacoco | cut -d' ' -f5
47M
```

Closes #8348.

PiperOrigin-RevId: 248503410
  • Loading branch information
iirina authored and copybara-github committed May 16, 2019
1 parent 8da37cf commit 616481a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ JAVA_TOOLS = [
"//third_party/java/proguard:embedded_tools",
"//src/java_tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper:srcs",
"//src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps:embedded_tools",
"//third_party/java/jacoco:srcs",
"//third_party/jarjar:embedded_build_and_license",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ public void setupMockClient(MockToolsConfig config, List<String> workspaceConten
"filegroup(name='extdir', srcs=glob(['jdk/jre/lib/ext/*']))",
"filegroup(name='java', srcs = ['jdk/jre/bin/java'])",
"filegroup(name='JacocoCoverage', srcs = [])",
"filegroup(name='jacoco-blaze-agent', srcs = [])",
"exports_files(['JavaBuilder_deploy.jar','SingleJar_deploy.jar','TestRunner_deploy.jar',",
" 'JavaBuilderCanary_deploy.jar', 'ijar', 'GenClass_deploy.jar',",
" 'turbine_deploy.jar','ExperimentalTestRunner_deploy.jar'])",
Expand Down
6 changes: 0 additions & 6 deletions tools/jdk/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,6 @@ py_test(
],
)

# For java coverage
alias(
name = "jacoco-blaze-agent",
actual = "//third_party/java/jacoco:blaze-agent",
)

remote_java_tools_java_import(
name = "JarJar",
target = ":JarJar",
Expand Down

0 comments on commit 616481a

Please sign in to comment.