31c82401f0
* stable-2.15: Bazel: Add fixes for --incompatible_load_{java|python}_rules_from_bzl Bazel: Bump minimum supported version to 0.29.0 Lucene index configuration and docs. Change-Id: I6c597cbc89fafece83c374e9b36c4c4c0126704f
41 lines
946 B
Python
41 lines
946 B
Python
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
|
|
|
|
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",
|
|
],
|
|
)
|