blob: 03f8e0abe144ba79c5cc287257ef27e30485fb24 [file] [log] [blame]
load("//tools/bzl:junit.bzl", "junit_tests")
load(
"//tools/bzl:plugin.bzl",
"PLUGIN_DEPS",
"PLUGIN_TEST_DEPS",
"gerrit_plugin",
)
gerrit_plugin(
name = "its-base",
srcs = glob(["src/main/java/**/*.java"]),
resources = glob(["src/main/resources/**/*"]),
)
TEST_UTIL_SRC = glob(["src/test/java/com/googlesource/gerrit/plugins/its/base/testutil/**/*.java"])
java_library(
name = "its-base_tests-utils",
testonly = 1,
srcs = TEST_UTIL_SRC,
visibility = ["//visibility:public"],
deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS,
)
junit_tests(
name = "its_base_tests",
testonly = 1,
srcs = glob(
["src/test/java/**/*.java"],
exclude = TEST_UTIL_SRC,
),
tags = ["its-base"],
deps = [
"its-base__plugin_test_deps",
],
)
java_library(
name = "its-base__plugin_test_deps",
testonly = 1,
visibility = ["//visibility:public"],
exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
":its-base__plugin",
":its-base_tests-utils",
],
)