blob: 68f47ec33ea3d7e8027ab8804a221f4d87899f75 [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 Liutikas5fe4b502022-03-09 19:41:04 +000022tools/gradlew -p tools/metalava \
23 --no-daemon \
24 --stacktrace \
25 --dependency-verification=off \
26 -PlintRepo=$LINT_REPO \
27 -PlintVersion=$LINT_VERSION