Lines Matching +full:maven +full:- +full:bin
1 #!/bin/bash
3 set -ex
10 CURRENT_LINT_VERSION=$(grep release com/android/tools/lint/lint/maven-metadata.xml | sed "s|.*<rele…
16 MVN_DIR=$(mktemp -d)
17 if [[ ! "$MVN_DIR" || ! -d "$MVN_DIR" ]]; then
18 echo "Could not create temp dir into which maven can be downloaded" >&2
23 rm -fr ${MVN_DIR}
29 # Download and unzip Apache Maven
32 …lcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.zip --ou…
33 unzip apache-maven-${MAVEN_VERSION}-bin.zip
36 MVN_BIN_DIR=$(find $MVN_DIR -name bin)
39 "com.android.tools.lint:lint-api"
40 "com.android.tools.lint:lint-checks"
41 "com.android.tools.lint:lint-gradle"
44 "com.android.tools:sdk-common"
48 # Add the bin directory containing maven to the path.
54 ../tools/import-maven-artifacts.sh $i:$NEW_LINT_VERSION
61 "com/android/tools/analytics-library"
63 "com/android/tools/build/aapt2-proto"
64 "com/android/tools/build/builder-model"
68 "com/android/tools/play-sdk-proto"
71 rm -fr ${UNUSED_DEPS[@]}
74 find -name "${CURRENT_LINT_VERSION}" -type d | xargs rm -fr
77 perl -pi -e "s/$CURRENT_LINT_VERSION/$NEW_LINT_VERSION/g" Android.bp
80 git add -u
81 find -name "${NEW_LINT_VERSION}" -type d | xargs git add
83 git commit -m "Upgrade metalava lint prebuilts to $NEW_LINT_VERSION
88 Test: m update-api
92 echo " m update-api"