<commit_before>#!/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/linux" tools/gradlew -p tools/ publishLocal

export GRADLE_PLUGIN_VERSION=`grep -oP "(?<=buildVersion = ).*" tools/buildSrc/base/version.properties`
export GRADLE_PLUGIN_REPO="$(pwd)/out/repo"
export JAVA_HOME="$PWD/prebuilts/jdk/jdk11/linux-x86/"

tools/gradlew -p frameworks/support --no-daemon bOS
DIST_SUBDIR="/ui" tools/gradlew -p frameworks/support/ui --no-daemon bOS<commit_msg>Also set JAVA_TOOLS_JAR for androidx-studio-integration script<commit_after>#!/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/linux" tools/gradlew -p tools/ publishLocal

export GRADLE_PLUGIN_VERSION=`grep -oP "(?<=buildVersion = ).*" tools/buildSrc/base/version.properties`
export GRADLE_PLUGIN_REPO="$(pwd)/out/repo"
export JAVA_HOME="$PWD/prebuilts/jdk/jdk11/linux-x86/"
export JAVA_TOOLS_JAR="$PWD/prebuilts/jdk/jdk11/linux-x86/lib/tools.jar"

tools/gradlew -p frameworks/support --no-daemon bOS
DIST_SUBDIR="/ui" tools/gradlew -p frameworks/support/ui --no-daemon bOS
{'fraction_non_alphanumeric': 0.17282321899736147, 'fraction_numerical': 0.009234828496042216, 'mean_word_length': 5.068, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5202582', 'n_tokens_mistral': 658, 'n_tokens_neox': 599, 'n_words': 110}