blob: 39591cbf21b81a2a8d6b143a36e707b9e402b60a [file] [log] [blame]
include_defs('//bucklets/gerrit_plugin.bucklet')
# TODO: support standalone Buck build with 2.11
#if STANDALONE_MODE:
# HTTP_LIB = '//lib/http:http_lib'
# GSON = '//lib/gson:gson'
#else:
# HTTP_LIB = '//plugins/importer/lib/http:http_lib'
# GSON = '//plugins/importer/lib/gson:gson'
HTTP_LIB = '//plugins/importer/lib/http:http_lib'
GSON = '//plugins/importer/lib/gson:gson'
gerrit_plugin(
name = 'importer',
srcs = glob(['src/main/java/**/*.java']),
resources = glob(['src/main/resources/**/*']),
manifest_entries = [
'Gerrit-PluginName: importer',
'Gerrit-ApiType: plugin',
'Gerrit-ApiVersion: 2.10',
'Gerrit-Module: com.googlesource.gerrit.plugins.importer.Module',
'Gerrit-SshModule: com.googlesource.gerrit.plugins.importer.SshModule',
],
deps = [
HTTP_LIB,
GSON,
],
)
# this is required for bucklets/tools/eclipse/project.py to work
java_library(
name = 'classpath',
deps = [':importer__plugin'],
)