blob: 3da69ef92387823f3da07939e185c91008bb2033 [file] [log] [blame]
include_defs('//lib/maven.defs')
gerrit_plugin(
name = 'replication',
srcs = glob(['src/main/java/**/*.java']),
resources = glob(['src/main/resources/**/*']),
manifest_entries = [
'Implementation-Title: Replication plugin',
'Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/replication',
'Gerrit-PluginName: replication',
'Gerrit-Module: com.googlesource.gerrit.plugins.replication.ReplicationModule',
'Gerrit-SshModule: com.googlesource.gerrit.plugins.replication.SshModule'
],
deps = [
':commons-io',
],
provided_deps = [
'//lib:gson',
'//lib/log:log4j'
],
)
maven_jar(
name = 'commons-io',
id = 'commons-io:commons-io:1.4',
sha1 = 'a8762d07e76cfde2395257a5da47ba7c1dbd3dce',
license = 'Apache2.0',
)
java_test(
name = 'replication_tests',
srcs = glob(['src/test/java/**/*.java']),
labels = ['replication'],
source_under_test = [':replication__plugin'],
deps = [
':replication__plugin',
'//gerrit-common:server',
'//gerrit-reviewdb:server',
'//gerrit-server:server',
'//lib:gwtorm',
'//lib:junit',
'//lib/easymock:easymock',
'//lib/jgit:jgit',
],
)