diff options
author | 2017-04-18 14:23:19 +0200 | |
---|---|---|
committer | 2017-04-18 14:35:16 +0200 | |
commit | 55828e256af4fe04e95f1c342a73d649d8525435 (patch) | |
tree | e9eb87f376897af767937ef71b126dac94f60a42 /third_party/java/jarjar/BUILD | |
parent | df8d804acb5826a120cad9acfc78dd6f0071d864 (diff) |
Vendor jarjar instead of using a binary version of it.
It appears that jarjar is not actually used except for renaming classes
in the coverage collecting Java test runner as verified by
`find . -name BUILD | xargs grep jarjar`
Yak shaving for #2820.
This is necessary because the current version of jarjar does not work
with Java 8 classes because it embeds a version of ASM that doesn't
support that yet.
Change-Id: I6ac59b84bbbc1e85fe8e7f4f4876b98fc6129df0
Diffstat (limited to 'third_party/java/jarjar/BUILD')
-rw-r--r-- | third_party/java/jarjar/BUILD | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/third_party/java/jarjar/BUILD b/third_party/java/jarjar/BUILD index 8f31f169c6..a13054f06d 100644 --- a/third_party/java/jarjar/BUILD +++ b/third_party/java/jarjar/BUILD @@ -7,13 +7,25 @@ filegroup( srcs = glob(["**"]), ) -java_import( - name = "jarjar", - jars = ["jarjar-1.4.jar"], +java_library( + name = "jarjar_core", + srcs = glob(["jarjar-core/src/main/**/*.java"]), + deps = [ + "//third_party:asm", + "//third_party:asm-commons", + "//third_party:asm-util", + "//third_party:jsr305", + "//third_party:slf4j", + ], ) java_binary( - name = "jarjar_bin", + name = "jarjar_command", + srcs = glob(["jarjar-command/src/main/**/*.java"]), main_class = "com.tonicsystems.jarjar.Main", - runtime_deps = [":jarjar"], + deps = [ + ":jarjar_core", + "//third_party:jsr305", + "//third_party/java/jopt-simple", + ], ) |