1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
# 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
load("//tools/distributions:distribution_rules.bzl", "distrib_jar_filegroup", "distrib_java_import")
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(
["*-sources.jar"],
allow_empty = True,
) + ["LICENSE"] + [
"//third_party:asm/asm-8.0-sources.jar",
"//third_party:asm/asm-analysis-8.0-sources.jar",
"//third_party:asm/asm-commons-8.0-sources.jar",
],
)
distrib_java_import(
name = "agent",
enable_distributions = ["debian"],
jars = ["org.jacoco.agent-%s.jar" % VERSION],
srcjar = "org.jacoco.agent-%s-sources.jar" % VERSION,
)
distrib_java_import(
name = "agent-%s" % VERSION,
enable_distributions = ["debian"],
jars = ["org.jacoco.agent-%s.jar" % VERSION],
srcjar = "org.jacoco.agent-%s-sources.jar" % VERSION,
)
distrib_java_import(
name = "core",
enable_distributions = ["debian"],
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",
],
)
distrib_java_import(
name = "core-%s" % VERSION,
enable_distributions = ["debian"],
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",
],
)
distrib_jar_filegroup(
name = "core-jars",
srcs = ["org.jacoco.core-%s.jar" % VERSION],
enable_distributions = ["debian"],
)
distrib_jar_filegroup(
name = "core-jars-%s" % VERSION,
srcs = ["org.jacoco.core-%s.jar" % VERSION],
enable_distributions = ["debian"],
)
distrib_java_import(
name = "report",
enable_distributions = ["debian"],
jars = ["org.jacoco.report-%s.jar" % VERSION],
srcjar = "org.jacoco.report-%s-sources.jar" % VERSION,
exports = [
":core",
"//third_party:asm",
],
)
distrib_java_import(
name = "report-%s" % VERSION,
enable_distributions = ["debian"],
jars = ["org.jacoco.report-%s.jar" % VERSION],
srcjar = "org.jacoco.report-%s-sources.jar" % VERSION,
exports = [
":core-%s" % VERSION,
"//third_party:asm",
],
)
distrib_java_import(
name = "blaze-agent",
enable_distributions = ["debian"],
jars = ["jacocoagent-%s.jar" % VERSION],
)
distrib_java_import(
name = "blaze-agent-%s" % VERSION,
enable_distributions = ["debian"],
jars = ["jacocoagent-%s.jar" % VERSION],
)
|