Hector Caballero | 01418c5 | 2015-11-25 07:04:17 -0500 | [diff] [blame] | 1 | include_defs('//bucklets/gerrit_plugin.bucklet') |
| 2 | include_defs('//bucklets/java_sources.bucklet') |
| 3 | include_defs('//bucklets/maven_jar.bucklet') |
| 4 | |
| 5 | SOURCES = glob(['src/main/java/**/*.java']) |
| 6 | RESOURCES = glob(['src/main/resources/**/*']) |
| 7 | |
| 8 | DEPS = [ |
| 9 | ':wiremock', |
| 10 | ] |
| 11 | |
| 12 | PROVIDED_DEPS = GERRIT_TESTS + [ |
| 13 | '//lib:gson', |
| 14 | ] |
| 15 | |
| 16 | TEST_DEPS = GERRIT_PLUGIN_API + PROVIDED_DEPS + DEPS + [ |
| 17 | ':sync-events__plugin', |
| 18 | ] |
| 19 | |
| 20 | gerrit_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 | |
| 37 | java_sources( |
| 38 | name = 'sync-events-sources', |
| 39 | srcs = SOURCES + RESOURCES, |
| 40 | ) |
| 41 | |
| 42 | java_library( |
| 43 | name = 'classpath', |
| 44 | deps = TEST_DEPS, |
| 45 | ) |
| 46 | |
| 47 | java_test( |
| 48 | name = 'sync-events_tests', |
| 49 | srcs = glob(['src/test/java/**/*.java']), |
| 50 | labels = ['sync-events'], |
Hector Caballero | 01418c5 | 2015-11-25 07:04:17 -0500 | [diff] [blame] | 51 | deps = TEST_DEPS, |
| 52 | ) |
| 53 | |
| 54 | maven_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 | ) |