Files
gerrit/tools/release.sh
Edwin Kempin 8173d426e5 Add Maven profile to skip build of plugin modules
Building the plugin modules ('Plugin API' and 'Plugin Archetype') may
take a significant amount of time (since many jars are downloaded).
During development it is not needed to build the plugin modules. This
change adds a Maven profile that skips the build of the plugin modules,
so that developers have a faster turnaround. This profile is called
'no-plugins' and it's active by default. To include the plugin modules
into the build activate the 'all' profile:

mvn clean package -P all

The script to make release builds has been adapted to activate the
'all' profile so that the plugin modules are always built for release
builds.

Change-Id: I6c3bd7dfcb80f1bf9d681a660d6fca2707b35f75
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2012-06-27 09:28:02 +02:00

40 lines
697 B
Bash
Executable File

#!/bin/sh
include_docs=-Dgerrit.include-documentation=1
while [ $# -gt 0 ]
do
case "$1" in
--no-documentation|--without-documentation)
include_docs=
shift
;;
*)
echo >&2 "usage: $0 [--without-documentation]"
exit 1
esac
done
git update-index -q --refresh
if test -n "$(git diff-index --name-only HEAD --)" \
|| test -n "$(git ls-files --others --exclude-standard)"
then
echo >&2 "error: working directory is dirty, refusing to build"
exit 1
fi
./tools/version.sh --release &&
mvn clean package $include_docs -P all
rc=$?
./tools/version.sh --reset
if test 0 = $rc
then
echo
echo Built Gerrit Code Review `git describe`:
ls gerrit-war/target/gerrit-*.war
echo
fi
exit $rc