blob: d6f1201c79696f8e25547a4dd5bfecfa57d74752 [file] [log] [blame]
Hector Caballero01418c52015-11-25 07:04:17 -05001include_defs('//bucklets/gerrit_plugin.bucklet')
2include_defs('//bucklets/java_sources.bucklet')
3include_defs('//bucklets/maven_jar.bucklet')
4
5SOURCES = glob(['src/main/java/**/*.java'])
6RESOURCES = glob(['src/main/resources/**/*'])
7
8DEPS = [
9 ':wiremock',
10]
11
12PROVIDED_DEPS = GERRIT_TESTS + [
13 '//lib:gson',
14]
15
16TEST_DEPS = GERRIT_PLUGIN_API + PROVIDED_DEPS + DEPS + [
17 ':sync-events__plugin',
18]
19
20gerrit_plugin(
21 name = 'sync-events',
22 srcs = SOURCES,
23 resources = RESOURCES,
24 manifest_entries = [
25 'Gerrit-PluginName: sync-events',
26 'Gerrit-ApiType: plugin',
27 'Gerrit-Module: com.ericsson.gerrit.plugins.syncevents.Module',
28 'Gerrit-HttpModule: com.ericsson.gerrit.plugins.syncevents.HttpModule',
29 'Implementation-Title: sync-events plugin',
30 'Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/sync-events',
31 'Implementation-Vendor: Ericsson',
32 ],
33 provided_deps = PROVIDED_DEPS,
34 deps = DEPS,
35)
36
37java_sources(
38 name = 'sync-events-sources',
39 srcs = SOURCES + RESOURCES,
40)
41
42java_library(
43 name = 'classpath',
44 deps = TEST_DEPS,
45)
46
47java_test(
48 name = 'sync-events_tests',
49 srcs = glob(['src/test/java/**/*.java']),
50 labels = ['sync-events'],
Hector Caballero01418c52015-11-25 07:04:17 -050051 deps = TEST_DEPS,
52)
53
54maven_jar(
55 name = 'wiremock',
56 id = 'com.github.tomakehurst:wiremock:1.58:standalone',
57 sha1 = '21c8386a95c5dc54a9c55839c5a95083e42412ae',
58 license = 'Apache2.0',
59 attach_source = False,
60)