gerrit/gerrit-gpg/BUILD
Dave Borowitz a3cc510fc1 Move default memory cache implementation out of H2 package
The memory cache doesn't depend on H2 at all, and this separation of
packages makes it harder to reintroduce the kind of source-level
dependency that was removed in I570fd54adf.

Change-Id: Ie23e39cd7ea9a0813a914e65614b889c248342ae
2018-05-14 13:09:55 +09:00

61 lines
1.4 KiB
Python

load("//tools/bzl:junit.bzl", "junit_tests")
DEPS = [
"//gerrit-common:server",
"//gerrit-extension-api:api",
"//gerrit-reviewdb:server",
"//gerrit-server:server",
"//lib:guava",
"//lib:gwtorm",
"//lib/guice:guice",
"//lib/guice:guice-assistedinject",
"//lib/guice:guice-servlet",
"//lib/jgit/org.eclipse.jgit:jgit",
"//lib/log:api",
]
java_library(
name = "gpg",
srcs = glob(["src/main/java/**/*.java"]),
visibility = ["//visibility:public"],
deps = DEPS + [
"//lib/bouncycastle:bcpg-neverlink",
"//lib/bouncycastle:bcprov-neverlink",
],
)
TESTUTIL_SRCS = glob(["src/test/**/testutil/**/*.java"])
java_library(
name = "testutil",
testonly = 1,
srcs = TESTUTIL_SRCS,
visibility = ["//visibility:public"],
deps = DEPS + [
"//lib/bouncycastle:bcpg-neverlink",
"//lib/bouncycastle:bcprov-neverlink",
":gpg",
],
)
junit_tests(
name = "gpg_tests",
srcs = glob(
["src/test/java/**/*.java"],
exclude = TESTUTIL_SRCS,
),
visibility = ["//visibility:public"],
deps = DEPS + [
":gpg",
":testutil",
"//gerrit-cache-h2:cache-h2",
"//gerrit-cache-mem:mem",
"//gerrit-lucene:lucene",
"//gerrit-server:testutil",
"//lib:truth",
"//lib/jgit/org.eclipse.jgit.junit:junit",
"//lib/bouncycastle:bcpg",
"//lib/bouncycastle:bcprov",
],
)