blob: e8cbb9a2942fd9740ce0b6d5ff8284b51f433c50 [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 4e69765b9e1acb1dd953dea99dd0ec532dee95e4
# and 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/hooks/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',
],
)
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',
],
)