blob: f6a1b35468795897d9b60dfff2c41d400bf4bbb2 [file] [log] [blame]
David Ostrovskyff7c81a2016-11-20 23:27:10 +01001load("@com_googlesource_gerrit_bazlets//tools:classpath.bzl", "classpath_collector")
2load("@com_googlesource_gerrit_bazlets//tools:py_binary_path.bzl", "py_binary_path")
3
4DEPS = [
David Ostrovsky65edbe42017-08-19 12:18:47 +02005 "//java/com/google/gitiles:servlet",
6 "//java/com/google/gitiles/dev:lib",
David Ostrovskyff7c81a2016-11-20 23:27:10 +01007]
8
9java_library(
10 name = "classpath",
11 runtime_deps = DEPS,
12)
13
14classpath_collector(
15 name = "main_classpath_collect",
16 testonly = 1,
17 deps = DEPS + [
David Ostrovsky65edbe42017-08-19 12:18:47 +020018 "//javatests/com/google/gitiles:servlet_tests",
David Ostrovskyff7c81a2016-11-20 23:27:10 +010019 ],
20)
21
22# TODO(davido): This is a hack:
23# https://github.com/bazelbuild/bazel/issues/2452
24# We know the py_binary rule, but for *reasons* we cannot
25# use `buck run <rule>. Unfortunately, a query to retrieve
26# the path was removed in Bazel. So we are forced to do this
27# hack to access python script outside of the Bazel.
28py_binary_path(
29 name = "project.py",
30 py_binary_label = "@com_googlesource_gerrit_bazlets//tools/eclipse:project",
31)