blob: 45cf4167a407c5b30c16ba092d1ec275bee06ca6 [file] [log] [blame]
David Ostrovskyfa189072016-11-30 08:52:06 +01001load("//tools/bzl:junit.bzl", "junit_tests")
David Ostrovskyb81b4f72016-05-21 19:55:01 +02002
3java_library(
David Ostrovskyfa189072016-11-30 08:52:06 +01004 name = "cache-h2",
5 srcs = glob(["src/main/java/**/*.java"]),
6 visibility = ["//visibility:public"],
7 deps = [
8 "//gerrit-common:server",
9 "//gerrit-extension-api:api",
10 "//gerrit-server:server",
11 "//lib:guava",
12 "//lib:h2",
13 "//lib/guice",
14 "//lib/jgit/org.eclipse.jgit:jgit",
15 "//lib/log:api",
16 ],
David Ostrovskyb81b4f72016-05-21 19:55:01 +020017)
18
19junit_tests(
David Ostrovskyfa189072016-11-30 08:52:06 +010020 name = "tests",
21 srcs = glob(["src/test/java/**/*.java"]),
22 deps = [
23 ":cache-h2",
24 "//gerrit-server:server",
25 "//lib:guava",
26 "//lib:h2",
27 "//lib:junit",
28 "//lib/guice",
29 ],
David Ostrovskyb81b4f72016-05-21 19:55:01 +020030)