blob: 7f95825ea65d5628fa608435a66d14ed3a817e34 [file] [log] [blame]
Aurimas Liutikas222577c2020-05-01 17:21:57 -07001#!/bin/bash
2set -e
3
4cd "$(dirname $0)/../../"
5SCRIPT_DIR="$(pwd)"
6echo "Script running from $(pwd)"
7
8# resolve DIST_DIR
9if [ -z "$DIST_DIR" ]; then
10 DIST_DIR="$SCRIPT_DIR/out/dist"
11fi
12mkdir -p "$DIST_DIR"
13
14export OUT_DIR=out
15export DIST_DIR="$DIST_DIR"
16
Aurimas Liutikasc1f1d872020-11-16 21:54:51 +000017JAVA_HOME="$(pwd)/prebuilts/studio/jdk/jdk11/linux" tools/gradlew -p tools/ publishLocal --stacktrace
Aurimas Liutikas222577c2020-05-01 17:21:57 -070018
19export LINT_VERSION=`grep -oP "(?<=baseVersion = ).*" tools/buildSrc/base/version.properties`
20export LINT_REPO="$(pwd)/out/repo"
21
Aurimas Liutikasd2b27952022-02-24 01:21:11 +000022# Integration build is broken, need to wait for Android Lint to ship to fix
23#tools/gradlew -p tools/metalava \
24# --no-daemon \
25# --stacktrace \
26# --dependency-verification=off \
27# -PlintRepo=$LINT_REPO \
28# -PlintVersion=$LINT_VERSION