blob: 6b8bfbe0207b4099c01fcbcf4bbb7e29be47963f [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 = "websession-flatfile",
srcs = glob(["src/main/java/**/*.java"]),
manifest_entries = [
"Gerrit-PluginName: websession-flatfile",
"Gerrit-Module: com.googlesource.gerrit.plugins.websession.flatfile.Module",
"Gerrit-HttpModule: com.googlesource.gerrit.plugins.websession.flatfile.FlatFileWebSession$Module",
"Implementation-Title: Flat file WebSession",
"Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/websession-flatfile",
],
resources = glob(["src/main/resources/**/*"]),
)
junit_tests(
name = "websession_flatfile_tests",
srcs = glob(["src/test/java/**/*.java"]),
resources = glob(["src/test/resources/**/*"]),
tags = ["websession-flatfile"],
deps = [
":websession-flatfile__plugin_test_deps",
],
)
java_library(
name = "websession-flatfile__plugin_test_deps",
testonly = 1,
visibility = ["//visibility:public"],
exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
":websession-flatfile__plugin",
"@mockito//jar",
],
)