blob: f00a805247e72d7d74547af15db00da8cd577834 [file] [log] [blame]
Paladox nonebf025862017-02-15 23:38:53 +00001load("//tools/bzl:junit.bzl", "junit_tests")
2load(
3 "//tools/bzl:plugin.bzl",
4 "gerrit_plugin",
5 "PLUGIN_DEPS",
6 "PLUGIN_TEST_DEPS",
7)
8
9gerrit_plugin(
10 name = "websession-flatfile",
11 srcs = glob(["src/main/java/**/*.java"]),
12 resources = glob(["src/main/resources/**/*"]),
13 manifest_entries = [
14 "Gerrit-PluginName: websession-flatfile",
15 "Gerrit-Module: com.googlesource.gerrit.plugins.websession.flatfile.Module",
16 "Gerrit-HttpModule: com.googlesource.gerrit.plugins.websession.flatfile.FlatFileWebSession$Module",
17 "Implementation-Title: Flat file WebSession",
18 "Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/websession-flatfile",
19 ],
20)
21
22junit_tests(
23 name = "websession_flatfile_tests",
24 srcs = glob(["src/test/java/**/*.java"]),
25 resources = glob(["src/test/resources/**/*"]),
26 tags = ["websession-flatfile"],
Thomas Draebingc43f39c2019-04-15 12:14:07 +020027 deps = [
28 ":websession-flatfile__plugin_test_deps",
29 ],
30)
31
32java_library(
33 name = "websession-flatfile__plugin_test_deps",
34 testonly = 1,
35 visibility = ["//visibility:public"],
36 exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
Paladox nonebf025862017-02-15 23:38:53 +000037 ":websession-flatfile__plugin",
Thomas Draebingc43f39c2019-04-15 12:14:07 +020038 "@mockito//jar",
Paladox nonebf025862017-02-15 23:38:53 +000039 ],
40)