blob: 45ad49364d4d71a6f0ea0efdb3e03af3ae7ce25a [file] [log] [blame]
load("@com_googlesource_gerrit_bazlets//tools:classpath.bzl", "classpath_collector")
load("@com_googlesource_gerrit_bazlets//tools:py_binary_path.bzl", "py_binary_path")
DEPS = [
"//gitiles-servlet:servlet",
"//gitiles-dev:lib",
]
java_library(
name = "classpath",
runtime_deps = DEPS,
)
classpath_collector(
name = "main_classpath_collect",
testonly = 1,
deps = DEPS + [
"//gitiles-servlet:servlet_tests",
],
)
# TODO(davido): This is a hack:
# https://github.com/bazelbuild/bazel/issues/2452
# We know the py_binary rule, but for *reasons* we cannot
# use `buck run <rule>. Unfortunately, a query to retrieve
# the path was removed in Bazel. So we are forced to do this
# hack to access python script outside of the Bazel.
py_binary_path(
name = "project.py",
py_binary_label = "@com_googlesource_gerrit_bazlets//tools/eclipse:project",
)