summaryrefslogtreecommitdiffstats
path: root/BUCK
blob: 494d9051c69f75fa9c3815fb8f22c76cb0c46332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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',
  ],
)

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'],
  deps = [
    ':replication__plugin',
    '//gerrit-acceptance-framework:lib',
    '//gerrit-plugin-api:lib',
  ],
)