blob: 7f95825ea65d5628fa608435a66d14ed3a817e34 [file] [log] [blame]
#!/bin/bash
set -e
cd "$(dirname $0)/../../"
SCRIPT_DIR="$(pwd)"
echo "Script running from $(pwd)"
# resolve DIST_DIR
if [ -z "$DIST_DIR" ]; then
DIST_DIR="$SCRIPT_DIR/out/dist"
fi
mkdir -p "$DIST_DIR"
export OUT_DIR=out
export DIST_DIR="$DIST_DIR"
JAVA_HOME="$(pwd)/prebuilts/studio/jdk/jdk11/linux" tools/gradlew -p tools/ publishLocal --stacktrace
export LINT_VERSION=`grep -oP "(?<=baseVersion = ).*" tools/buildSrc/base/version.properties`
export LINT_REPO="$(pwd)/out/repo"
# Integration build is broken, need to wait for Android Lint to ship to fix
#tools/gradlew -p tools/metalava \
# --no-daemon \
# --stacktrace \
# --dependency-verification=off \
# -PlintRepo=$LINT_REPO \
# -PlintVersion=$LINT_VERSION