| load("//tools/bzl:junit.bzl", "junit_tests") |
| load( |
| "//tools/bzl:plugin.bzl", |
| "gerrit_plugin", |
| "PLUGIN_DEPS", |
| "PLUGIN_TEST_DEPS", |
| ) |
| |
| gerrit_plugin( |
| name = "websession-broker", |
| srcs = glob(["src/main/java/**/*.java"]), |
| resources = glob(["src/main/resources/**/*"]), |
| deps = [ |
| "@events-broker//jar", |
| ], |
| manifest_entries = [ |
| "Gerrit-PluginName: websession-broker", |
| "Gerrit-HttpModule: com.googlesource.gerrit.plugins.websession.broker.BrokerBasedWebSession$Module", |
| "Implementation-Title: Broker WebSession", |
| "Implementation-URL: https://review.gerrithub.io/admin/repos/GerritForge/plugins_websession-broker", |
| ], |
| ) |
| |
| junit_tests( |
| name = "websession-broker_tests", |
| srcs = glob(["src/test/java/**/*.java"]), |
| resources = glob(["src/test/resources/**/*"]), |
| tags = ["websession-broker"], |
| deps = [ |
| ":websession-broker__plugin_test_deps", |
| ], |
| ) |
| |
| java_library( |
| name = "websession-broker__plugin_test_deps", |
| testonly = 1, |
| visibility = ["//visibility:public"], |
| exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [ |
| ":websession-broker__plugin", |
| "@mockito//jar", |
| "@events-broker//jar", |
| ], |
| ) |