Sven Selberg | 9f00b34 | 2021-03-01 17:30:44 +0100 | [diff] [blame] | 1 | load("//tools/bzl:junit.bzl", "junit_tests") |
| 2 | load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_TEST_DEPS", "gerrit_plugin") |
| 3 | |
| 4 | gerrit_plugin( |
Sven Selberg | 08f98f2 | 2021-05-17 09:18:25 +0200 | [diff] [blame] | 5 | name = "events-eiffel", |
Sven Selberg | 9f00b34 | 2021-03-01 17:30:44 +0100 | [diff] [blame] | 6 | srcs = glob(["src/main/java/**/*.java"]), |
| 7 | manifest_entries = [ |
Sven Selberg | 08f98f2 | 2021-05-17 09:18:25 +0200 | [diff] [blame] | 8 | "Gerrit-PluginName: events-eiffel", |
| 9 | "Gerrit-Module: com.googlesource.gerrit.plugins.eventseiffel.Module", |
Sven Selberg | 9f00b34 | 2021-03-01 17:30:44 +0100 | [diff] [blame] | 10 | ], |
| 11 | resources = glob(["src/main/resources/**/*"]), |
Sven Selberg | 295b636 | 2021-03-31 16:25:54 +0200 | [diff] [blame] | 12 | deps = [ |
| 13 | "@amqp_client//jar", |
| 14 | ], |
Sven Selberg | 9f00b34 | 2021-03-01 17:30:44 +0100 | [diff] [blame] | 15 | ) |
| 16 | |
| 17 | junit_tests( |
Sven Selberg | 08f98f2 | 2021-05-17 09:18:25 +0200 | [diff] [blame] | 18 | name = "events-eiffel_tests", |
Sven Selberg | 9f00b34 | 2021-03-01 17:30:44 +0100 | [diff] [blame] | 19 | srcs = glob(["src/test/java/**/*.java"]), |
Sven Selberg | 08f98f2 | 2021-05-17 09:18:25 +0200 | [diff] [blame] | 20 | tags = ["events-eiffel"], |
Sven Selberg | 9f00b34 | 2021-03-01 17:30:44 +0100 | [diff] [blame] | 21 | visibility = ["//visibility:public"], |
Sven Selberg | 08f98f2 | 2021-05-17 09:18:25 +0200 | [diff] [blame] | 22 | deps = PLUGIN_TEST_DEPS + PLUGIN_DEPS + [":events-eiffel__plugin"], |
Sven Selberg | 9f00b34 | 2021-03-01 17:30:44 +0100 | [diff] [blame] | 23 | ) |