blob: 581deae3db1d626da03c400cee1bd144f28a45e5 [file] [log] [blame]
include_defs('//bucklets/gerrit_plugin.bucklet')
DEPS = [
'//lib/commons:lang',
'//lib:guava',
'//lib/guice:guice',
'//lib/jgit:jgit',
'//lib/log:api',
'//lib:grappa', # used for it's parboiled part. See
# core's 0db7612e092b37c6ea04883a5a45f51c6d9ae433
# for details
'//lib:velocity',
]
gerrit_plugin(
name = 'its-base',
srcs = glob(['src/main/java/**/*.java']),
resources = glob(['src/main/resources/**/*']),
provided_deps = DEPS,
)
TEST_UTIL_SRC = glob(['src/test/java/com/googlesource/gerrit/plugins/its/base/testutil/**/*.java'])
java_library(
name = 'its-base_tests-utils',
srcs = TEST_UTIL_SRC,
deps = DEPS + [
'//lib/easymock:easymock',
'//lib/log:impl_log4j',
'//lib/log:log4j',
'//lib:junit',
'//lib/powermock:powermock-api-easymock',
'//lib/powermock:powermock-api-support',
'//lib/powermock:powermock-core',
'//lib/powermock:powermock-module-junit4',
'//lib/powermock:powermock-module-junit4-common',
],
visibility = ['PUBLIC'],
)
java_test(
name = 'its-base_tests',
srcs = glob(
['src/test/java/**/*.java'],
excludes = TEST_UTIL_SRC
),
labels = ['its-base'],
source_under_test = [':its-base__plugin'],
deps = DEPS + [
':its-base__plugin',
':its-base_tests-utils',
'//gerrit-plugin-api:lib',
'//lib:gwtorm',
'//lib/easymock:easymock',
'//lib/log:impl_log4j',
'//lib/log:log4j',
'//lib:junit',
'//lib/powermock:powermock-api-easymock',
'//lib/powermock:powermock-api-support',
'//lib/powermock:powermock-core',
'//lib/powermock:powermock-module-junit4',
'//lib/powermock:powermock-module-junit4-common',
],
)