![David Ostrovsky](/assets/img/avatar_default.png)
Cross cell support in Buck is considered as experimental feature, with number of open issues: [1], [2], [3]. Moreover, to make Maven Central machinery work, it was needed to create symbolic links in source tree. That broke `buck targets` feature. Remove it for now, and re-consider to add it later. [1] https://github.com/facebook/buck/issues/656 [2] https://github.com/facebook/buck/issues/658 [3] https://github.com/facebook/buck/issues/717 Bug: Issue 3954 Change-Id: Ic621a07771f926001df181b46b2169e214ce208a
73 lines
1.6 KiB
Python
73 lines
1.6 KiB
Python
EXPORTED_DEPS = [
|
|
'//gerrit-common:client',
|
|
'//gerrit-gwtexpui:Clippy',
|
|
'//gerrit-gwtexpui:GlobalKey',
|
|
'//gerrit-gwtexpui:Progress',
|
|
'//gerrit-gwtexpui:SafeHtml',
|
|
'//gerrit-gwtexpui:UserAgent',
|
|
]
|
|
DEPS = ['//lib/gwt:user']
|
|
SRC = 'src/main/java/com/google/gerrit/'
|
|
DIFFY = glob(['src/main/resources/com/google/gerrit/client/diffy*.png'])
|
|
|
|
gwt_module(
|
|
name = 'client',
|
|
srcs = glob([SRC + 'client/**/*.java']),
|
|
gwt_xml = SRC + 'GerritGwtUICommon.gwt.xml',
|
|
resources = glob(['src/main/**/*']),
|
|
exported_deps = EXPORTED_DEPS,
|
|
provided_deps = DEPS,
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'client-lib',
|
|
srcs = glob(['src/main/**/*.java']),
|
|
resources = glob(['src/main/**/*']),
|
|
exported_deps = EXPORTED_DEPS,
|
|
provided_deps = DEPS,
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'client-src-lib',
|
|
srcs = [],
|
|
resources = glob(['src/main/**/*']),
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
prebuilt_jar(
|
|
name = 'diffy_logo',
|
|
binary_jar = ':diffy_image_files_ln',
|
|
deps = [
|
|
'//lib:LICENSE-diffy',
|
|
'//lib:LICENSE-CC-BY3.0',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
genrule(
|
|
name = 'diffy_image_files_ln',
|
|
cmd = 'ln -s $(location :diffy_image_files) $OUT',
|
|
out = 'diffy_images.jar',
|
|
)
|
|
|
|
java_library(
|
|
name = 'diffy_image_files',
|
|
resources = DIFFY,
|
|
)
|
|
|
|
java_test(
|
|
name = 'client_tests',
|
|
srcs = glob(['src/test/java/**/*.java']),
|
|
deps = [
|
|
':client',
|
|
'//lib:junit',
|
|
'//lib/gwt:user',
|
|
'//lib/jgit/org.eclipse.jgit:jgit',
|
|
],
|
|
source_under_test = [':client'],
|
|
vm_args = ['-Xmx512m'],
|
|
visibility = ['//tools/eclipse:classpath'],
|
|
)
|