| # Description: | |
| # JaCoCo is a free code coverage library for Java, created by the EclEmma team. | |
| # | |
| # http://search.maven.org/remotecontent?filepath=org/jacoco/jacoco/0.8.3/jacoco-0.8.3.zip | |
| licenses(["reciprocal"]) # EPL 1.0 (Eclipse Public License) | |
| exports_files(["LICENSE"]) | |
| package(default_visibility = ["//visibility:public"]) | |
| VERSION = "0.8.3" | |
| filegroup( | |
| name = "srcs", | |
| srcs = glob(["**"]), | |
| ) | |
| genrule( | |
| name = "jacoco_jars_zip", | |
| srcs = glob(["*.jar"]) + ["LICENSE"] + [ | |
| "//third_party:asm", | |
| "//third_party:asm-commons", | |
| "//third_party:asm-tree", | |
| ], | |
| outs = ["jacoco_jars.zip"], | |
| cmd = "$(location //src:zip_files) third_party/java/jacoco $@ $(SRCS)", | |
| output_to_bindir = 1, | |
| tools = ["//src:zip_files"], | |
| ) | |
| filegroup( | |
| name = "transitive_sources", | |
| srcs = glob( | |
| ["*-src.jar"], | |
| allow_empty = True, | |
| ) + ["LICENSE"] + [ | |
| "//third_party:asm/asm-7.0-sources.jar", | |
| "//third_party:asm/asm-analysis-7.0-sources.jar", | |
| "//third_party:asm/asm-commons-7.0-sources.jar", | |
| ], | |
| ) | |
| java_import( | |
| name = "agent", | |
| jars = ["org.jacoco.agent-%s.jar" % VERSION], | |
| srcjar = "org.jacoco.agent-%s-sources.jar" % VERSION, | |
| ) | |
| java_import( | |
| name = "agent-%s" % VERSION, | |
| jars = ["org.jacoco.agent-%s.jar" % VERSION], | |
| srcjar = "org.jacoco.agent-%s-sources.jar" % VERSION, | |
| ) | |
| java_import( | |
| name = "core", | |
| jars = ["org.jacoco.core-%s.jar" % VERSION], | |
| srcjar = "org.jacoco.core-%s-sources.jar" % VERSION, | |
| exports = [ | |
| "//third_party:asm", | |
| "//third_party:asm-commons", | |
| "//third_party:asm-tree", | |
| ], | |
| ) | |
| java_import( | |
| name = "core-%s" % VERSION, | |
| jars = ["org.jacoco.core-%s.jar" % VERSION], | |
| srcjar = "org.jacoco.core-%s-sources.jar" % VERSION, | |
| exports = [ | |
| "//third_party:asm", | |
| "//third_party:asm-commons", | |
| "//third_party:asm-tree", | |
| ], | |
| ) | |
| filegroup( | |
| name = "core-jars", | |
| srcs = ["org.jacoco.core-%s.jar" % VERSION], | |
| ) | |
| filegroup( | |
| name = "core-jars-%s" % VERSION, | |
| srcs = ["org.jacoco.core-%s.jar" % VERSION], | |
| ) | |
| java_import( | |
| name = "report", | |
| jars = ["org.jacoco.report-%s.jar" % VERSION], | |
| srcjar = "org.jacoco.report-%s-sources.jar" % VERSION, | |
| exports = [ | |
| ":core", | |
| "//third_party:asm", | |
| ], | |
| ) | |
| java_import( | |
| name = "report-%s" % VERSION, | |
| jars = ["org.jacoco.report-%s.jar" % VERSION], | |
| srcjar = "org.jacoco.report-%s-sources.jar" % VERSION, | |
| exports = [ | |
| ":core-%s" % VERSION, | |
| "//third_party:asm", | |
| ], | |
| ) | |
| java_import( | |
| name = "blaze-agent", | |
| jars = ["jacocoagent-%s.jar" % VERSION], | |
| ) | |
| java_import( | |
| name = "blaze-agent-%s" % VERSION, | |
| jars = ["jacocoagent-%s.jar" % VERSION], | |
| ) | |
| java_import( | |
| name = "blaze-agent-neverlink", | |
| jars = ["jacocoagent-%s.jar" % VERSION], | |
| neverlink = 1, | |
| ) | |
| java_import( | |
| name = "blaze-agent-neverlink-%s" % VERSION, | |
| jars = ["jacocoagent-%s.jar" % VERSION], | |
| neverlink = 1, | |
| ) |