Files
gerrit/tools/eclipse/BUILD
David Pursehouse 726b4cc796 Merge branch 'stable-2.16' into stable-3.0
* stable-2.16:
  Load proto_library from @rules_proto//proto:defs.bzl
  Update git submodules
  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: I401c192096047dd5069be37f17c4a62a8ed3afb7
2019-09-05 08:17:48 +09:00

48 lines
1.3 KiB
Python

load("@rules_java//java:defs.bzl", "java_library")
load("//tools/bzl:classpath.bzl", "classpath_collector")
load("//tools/bzl:pkg_war.bzl", "LIBS", "PGMLIBS")
load(
"//tools/bzl:plugins.bzl",
"CORE_PLUGINS",
"CUSTOM_PLUGINS",
"CUSTOM_PLUGINS_TEST_DEPS",
)
TEST_DEPS = [
"//javatests/com/google/gerrit/elasticsearch:elasticsearch_test_utils",
"//javatests/com/google/gerrit/server:server_tests",
]
TEST_DEPS_GENERATED = [
"//proto/testing:test_java_proto",
]
DEPS = [
"//java/com/google/gerrit/acceptance:lib",
"//java/com/google/gerrit/server",
"//java/com/google/gerrit/asciidoctor:asciidoc_lib",
"//java/com/google/gerrit/asciidoctor:doc_indexer_lib",
"//lib/auto:auto-value",
"//lib/prolog:compiler-lib",
"//proto:entities_java_proto",
]
java_library(
name = "classpath",
testonly = True,
runtime_deps = LIBS + PGMLIBS + DEPS + TEST_DEPS_GENERATED,
)
classpath_collector(
name = "main_classpath_collect",
testonly = True,
deps = LIBS + PGMLIBS + DEPS + TEST_DEPS + TEST_DEPS_GENERATED +
["//plugins/%s:%s__plugin" % (n, n) for n in CORE_PLUGINS + CUSTOM_PLUGINS] +
["//plugins/%s:%s__plugin_test_deps" % (n, n) for n in CUSTOM_PLUGINS_TEST_DEPS],
)
classpath_collector(
name = "autovalue_classpath_collect",
deps = ["//lib/auto:auto-value"],
)