blob: 08c320b6616eef41abfbf6682ac963eb6a17f758 [file] [log] [blame]
package(default_visibility = ["//java/com/google/gerrit/index:__pkg__"])
[java_library(
name = n,
data = ["//lib:LICENSE-antlr"],
exports = ["@%s//jar" % n],
) for n in [
"antlr27",
"stringtemplate",
]]
java_library(
name = "java_runtime",
data = ["//lib:LICENSE-antlr"],
visibility = ["//visibility:public"],
exports = ["@java_runtime//jar"],
)
# See https://github.com/bazelbuild/bazel/issues/3542
# for why we need to tweak jvm flags in this rule.
java_binary(
name = "antlr-tool",
jvm_flags = ["-XX:-UsePerfData"],
main_class = "org.antlr.Tool",
visibility = ["//antlr3:__pkg__"],
runtime_deps = [":tool"],
)
java_library(
name = "tool",
data = ["//lib:LICENSE-antlr"],
exports = ["@org_antlr//jar"],
runtime_deps = [
":antlr27",
":java_runtime",
":stringtemplate",
],
)