Created
October 21, 2014 08:30
-
-
Save weilliu/17f38a945f2c5fc7419d to your computer and use it in GitHub Desktop.
buildSDKJar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Start with setting the variables | |
BUILD_STASH=$PWD/stash | |
BUILD_ROOT=$(pwd) | |
if [ ! -d "$BUILD_STASH" ]; then | |
mkdir $BUILD_STASH | |
fi | |
cd $BUILD_ROOT/couchbase-java-client | |
CB_VERSION=$(git describe) | |
# Don't pollute user/global repo | |
export ANT_OPTS="$ANT_OPTS -Duser.home=$BUILD_STASH" | |
# Setup our commands | |
ANTCMD=ant | |
MVNCMD="mvn -Duser.home=$BUILD_STASH" | |
cd $BUILD_ROOT/couchbase-jvm-core | |
./gradlew install | |
./gradlew publish | |
./gradlew publishToMavenLocal | |
cd $BUILD_ROOT/couchbase-java-client | |
./gradlew install | |
./gradlew publish | |
./gradlew publishToMavenLocal | |
#Compile the sdkd source code using the above dependencies | |
cd $BUILD_ROOT/sdkd-java | |
$MVNCMD compile | |
$MVNCMD package | |
#finally create a single exec jar using the target create_run_jar | |
cd $BUILD_ROOT | |
echo $(pwd) | |
$ANTCMD create_run_jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment