af71968891
I382757618 added the Bazel build for core pluins, but missed to add plugins/BUILD file. TEST PLAN: bazel build release unzip -t bazel-bin/release.war | grep --regex "plugins/.*.jar" | wc -l 6 Change-Id: I3338541ec61905db6658761fa5c6fc374dba0348
23 lines
509 B
Python
23 lines
509 B
Python
load('//tools/bzl:genrule2.bzl', 'genrule2')
|
|
|
|
CORE = [
|
|
'commit-message-length-validator',
|
|
'download-commands',
|
|
'hooks',
|
|
'replication',
|
|
'reviewnotes',
|
|
'singleusergroup'
|
|
]
|
|
|
|
genrule2(
|
|
name = 'core',
|
|
srcs = ['//plugins/%s:%s_deploy.jar' % (n, n) for n in CORE],
|
|
cmd = 'mkdir -p $$TMP/WEB-INF/plugins;' +
|
|
'for s in $(SRCS) ; do ' +
|
|
'ln -s $$ROOT/$$s $$TMP/WEB-INF/plugins;done;' +
|
|
'cd $$TMP;' +
|
|
'zip -qr $$ROOT/$@ .',
|
|
out = 'core.zip',
|
|
visibility = ['//visibility:public'],
|
|
)
|