blob: 8232c2bbaa1c7baed1a5883e8353b0b9079e522a [file] [log] [blame]
include_defs('//bucklets/gerrit_plugin.bucklet')
include_defs('//bucklets/java_sources.bucklet')
include_defs('//bucklets/maven_jar.bucklet')
SOURCES = glob(['src/main/java/**/*.java'])
RESOURCES = glob(['src/main/resources/**/*'])
TEST_DEPS = GERRIT_PLUGIN_API + GERRIT_TESTS + [
':high-availability__plugin',
':mockito',
':wiremock',
]
gerrit_plugin(
name = 'high-availability',
srcs = SOURCES,
resources = RESOURCES,
manifest_entries = [
'Gerrit-PluginName: high-availability',
'Gerrit-ApiType: plugin',
'Gerrit-Module: com.ericsson.gerrit.plugins.highavailability.Module',
'Gerrit-HttpModule: com.ericsson.gerrit.plugins.highavailability.HttpModule',
'Implementation-Title: high-availability plugin',
'Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/high-availability',
'Implementation-Vendor: Ericsson',
],
provided_deps = GERRIT_TESTS,
)
java_sources(
name = 'high-availability-sources',
srcs = SOURCES + RESOURCES,
)
java_library(
name = 'classpath',
deps = TEST_DEPS,
)
java_test(
name = 'high-availability_tests',
srcs = glob(['src/test/java/**/*.java']),
resources = glob(['src/test/resources/**/']),
labels = ['high-availability'],
deps = TEST_DEPS,
)
maven_jar(
name = 'wiremock',
id = 'com.github.tomakehurst:wiremock-standalone:2.5.1',
sha1 = '9cda1bf1674c8de3a1116bae4d7ce0046a857d30',
license = 'Apache2.0',
attach_source = False,
)
maven_jar(
name = 'mockito',
id = 'org.mockito:mockito-core:2.7.21',
sha1 = '23e9f7bfb9717e849a05b84c29ee3ac723f1a653',
license = 'DO_NOT_DISTRIBUTE',
deps = [
':byte-buddy',
':objenesis',
],
)
maven_jar(
name = 'byte-buddy',
id = 'net.bytebuddy:byte-buddy:1.6.11',
sha1 = '8a8f9409e27f1d62c909c7eef2aa7b3a580b4901',
license = 'DO_NOT_DISTRIBUTE',
attach_source = False,
)
maven_jar(
name = 'objenesis',
id = 'org.objenesis:objenesis:2.5',
sha1 = '612ecb799912ccf77cba9b3ed8c813da086076e9',
license = 'DO_NOT_DISTRIBUTE',
attach_source = False,
)