Require lint when building release target
Make plugin more groovy. Fixes lint errors that were blocking submit.
Fixes lint API database path to be relative to project directory.
Change-Id: I0c3d8b0ba0b9c40d4a7979677f03b9eff6dcf2ce
Fixes: 29630077
Test: ./gradlew createArchive
diff --git a/gradlew b/gradlew
index 30aa96f..014f353 100755
--- a/gradlew
+++ b/gradlew
@@ -6,14 +6,6 @@
##
##############################################################################
-# Pick the correct fullsdk for this OS.
-if [ "$os" = "Darwin" ]; then
- plat="darwin"
-else
- plat="linux"
-fi
-DEFAULT_JVM_OPTS="-DLINT_API_DATABASE=../../prebuilts/fullsdk-$plat/platform-tools/api/api-versions.xml"
-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
APP_NAME="Gradle"
@@ -69,6 +61,14 @@
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+# Pick the correct fullsdk for this OS.
+if [ "$os" = "Darwin" ]; then
+ plat="darwin"
+else
+ plat="linux"
+fi
+DEFAULT_JVM_OPTS="-DLINT_API_DATABASE=$APP_HOME/../../prebuilts/fullsdk-$plat/platform-tools/api/api-versions.xml"
+
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then