![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
77 lines
1.7 KiB
Python
77 lines
1.7 KiB
Python
include_defs('//tools/git.defs')
|
|
|
|
java_library(
|
|
name = 'init',
|
|
srcs = glob(['src/main/java/**/*.java']),
|
|
deps = [
|
|
'//gerrit-cache-h2:cache-h2',
|
|
'//gerrit-extension-api:api',
|
|
'//gerrit-gpg:gpg',
|
|
'//gerrit-httpd:httpd',
|
|
'//gerrit-lucene:lucene',
|
|
'//gerrit-oauth:oauth',
|
|
'//gerrit-openid:openid',
|
|
'//gerrit-pgm:http',
|
|
'//gerrit-pgm:init',
|
|
'//gerrit-pgm:init-api',
|
|
'//gerrit-pgm:util',
|
|
'//gerrit-reviewdb:server',
|
|
'//gerrit-server:server',
|
|
'//gerrit-server/src/main/prolog:common',
|
|
'//gerrit-sshd:sshd',
|
|
'//lib:guava',
|
|
'//lib:gwtorm',
|
|
'//lib/guice:guice',
|
|
'//lib/guice:guice-servlet',
|
|
'//lib/jgit/org.eclipse.jgit:jgit',
|
|
'//lib/log:api',
|
|
],
|
|
provided_deps = ['//lib:servlet-api-3_1'],
|
|
visibility = [
|
|
'//:',
|
|
'//gerrit-gwtdebug:gwtdebug',
|
|
'//tools/eclipse:classpath',
|
|
],
|
|
)
|
|
|
|
genrule(
|
|
name = 'webapp_assets',
|
|
cmd = 'cd src/main/webapp; zip -qr $OUT .',
|
|
srcs = glob(['src/main/webapp/**/*']),
|
|
out = 'webapp_assets.zip',
|
|
visibility = ['//:'],
|
|
)
|
|
|
|
genrule(
|
|
name = 'log4j-config__jar',
|
|
cmd = 'jar cf $OUT -C src/main/resources .',
|
|
srcs = ['src/main/resources/log4j.properties'],
|
|
out = 'log4j-config.jar',
|
|
)
|
|
|
|
prebuilt_jar(
|
|
name = 'log4j-config',
|
|
binary_jar = ':log4j-config__jar',
|
|
visibility = [
|
|
'//:',
|
|
'//tools/eclipse:classpath',
|
|
],
|
|
)
|
|
|
|
prebuilt_jar(
|
|
name = 'version',
|
|
binary_jar = ':gen_version',
|
|
visibility = ['//:'],
|
|
)
|
|
|
|
genrule(
|
|
name = 'gen_version',
|
|
cmd = ';'.join([
|
|
'cd $TMP',
|
|
'mkdir -p com/google/gerrit/common',
|
|
'echo "%s" >com/google/gerrit/common/Version' % git_describe(),
|
|
'zip -9Dqr $OUT .',
|
|
]),
|
|
out = 'version.jar',
|
|
)
|