9254422741
Change-Id: I3580aea7142d5bc78ce521a0ffb568b86d094449
64 lines
1.3 KiB
Python
64 lines
1.3 KiB
Python
SRC = 'src/main/java/com/google/gerrit/'
|
|
|
|
ANNOTATIONS = [
|
|
SRC + 'common/Nullable.java',
|
|
SRC + 'common/audit/Audit.java',
|
|
SRC + 'common/auth/SignInRequired.java',
|
|
]
|
|
|
|
EXCLUDES = [
|
|
SRC + 'common/PluginData.java',
|
|
SRC + 'common/FileUtil.java',
|
|
]
|
|
|
|
java_library(
|
|
name = 'annotations',
|
|
srcs = ANNOTATIONS,
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
gwt_module(
|
|
name = 'client',
|
|
srcs = glob([SRC + 'common/**/*.java'], excludes = EXCLUDES),
|
|
gwt_xml = SRC + 'Common.gwt.xml',
|
|
deps = [
|
|
':annotations',
|
|
'//gerrit-extension-api:client',
|
|
'//gerrit-patch-jgit:client',
|
|
'//gerrit-prettify:client',
|
|
'//gerrit-reviewdb:client',
|
|
'//lib:gwtjsonrpc',
|
|
'//lib:gwtorm',
|
|
'//lib/jgit:jgit',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'server',
|
|
srcs = glob([SRC + 'common/**/*.java'], excludes = ANNOTATIONS),
|
|
deps = [
|
|
':annotations',
|
|
'//gerrit-extension-api:api',
|
|
'//gerrit-patch-jgit:server',
|
|
'//gerrit-prettify:server',
|
|
'//gerrit-reviewdb:server',
|
|
'//lib:gwtjsonrpc',
|
|
'//lib:gwtorm',
|
|
'//lib:guava',
|
|
'//lib/jgit:jgit',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_test(
|
|
name = 'client_tests',
|
|
srcs = glob(['src/test/java/**/*.java']),
|
|
deps = [
|
|
':client',
|
|
'//lib:guava',
|
|
'//lib:junit',
|
|
],
|
|
source_under_test = [':client'],
|
|
)
|