7f4662fd4a
Some plugins like uploadvalidator, will now not load because of missing binding for SecureStore in CopyConfigModule. To be able to bind SecureStoreProvider there we need to move it from pgm module to server. Then because it is using IoUtils and SiteLibraryLoaderUtil to common module and adjust BUCK configuration to make it compile Gerrit. Change-Id: I20d7f56750e5290872b984881cd4dbd1add5988c Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
66 lines
1.4 KiB
Python
66 lines
1.4 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/SiteLibraryLoaderUtil.java',
|
|
SRC + 'common/PluginData.java',
|
|
SRC + 'common/FileUtil.java',
|
|
SRC + 'common/IoUtil.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'],
|
|
)
|