Aurimas Liutikas | 222577c | 2020-05-01 17:21:57 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -e |
| 3 | |
| 4 | cd "$(dirname $0)/../../" |
| 5 | SCRIPT_DIR="$(pwd)" |
| 6 | echo "Script running from $(pwd)" |
| 7 | |
| 8 | # resolve DIST_DIR |
| 9 | if [ -z "$DIST_DIR" ]; then |
| 10 | DIST_DIR="$SCRIPT_DIR/out/dist" |
| 11 | fi |
| 12 | mkdir -p "$DIST_DIR" |
| 13 | |
| 14 | export OUT_DIR=out |
| 15 | export DIST_DIR="$DIST_DIR" |
| 16 | |
Aurimas Liutikas | c1f1d87 | 2020-11-16 21:54:51 +0000 | [diff] [blame] | 17 | JAVA_HOME="$(pwd)/prebuilts/studio/jdk/jdk11/linux" tools/gradlew -p tools/ publishLocal --stacktrace |
Aurimas Liutikas | 222577c | 2020-05-01 17:21:57 -0700 | [diff] [blame] | 18 | |
| 19 | export LINT_VERSION=`grep -oP "(?<=baseVersion = ).*" tools/buildSrc/base/version.properties` |
| 20 | export LINT_REPO="$(pwd)/out/repo" |
| 21 | |
Aurimas Liutikas | 5fe4b50 | 2022-03-09 19:41:04 +0000 | [diff] [blame] | 22 | tools/gradlew -p tools/metalava \ |
| 23 | --no-daemon \ |
| 24 | --stacktrace \ |
| 25 | --dependency-verification=off \ |
| 26 | -PlintRepo=$LINT_REPO \ |
| 27 | -PlintVersion=$LINT_VERSION |