blob: 238d043fce6406684492a39de33bd94e99231ea0 [file] [log] [blame]
#!/bin/bash -e
cd gerrit
SOURCE_LEVEL=$(grep "source_level" .buckconfig || echo "source_level=7")
. set-java.sh $(echo $SOURCE_LEVEL | cut -d '=' -f 2 | tr -d '[[:space:]]')
buck build -v 3 api plugins:core release
if [ -f tools/maven/api.sh ]
then
# From Gerrit 2.13 onwards
tools/maven/api.sh install buck
else
# Up to Gerrit 2.12
buck build -v 3 api_install
fi
mv $(find buck-out -name '*.war') buck-out/gen/gerrit.war