diff --git a/build.gradle b/build.gradle index 1df3ae7c3..69c855dd5 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,6 @@ +import com.android.build.gradle.AppPlugin +import com.android.build.gradle.LibraryPlugin + apply plugin: 'com.github.ben-manes.versions' // Top-level build file where you can add configuration options common to all sub-projects/modules. @@ -29,7 +32,7 @@ allprojects { subprojects { - plugins.withId('com.android.library') { + plugins.withType(LibraryPlugin) { android { compileSdkVersion 23 buildToolsVersion '23.0.1' @@ -52,7 +55,7 @@ subprojects { } } - plugins.withId('com.android.application') { + plugins.withType(AppPlugin) { android { compileSdkVersion 23 @@ -123,4 +126,12 @@ subprojects { } } } +} + +task clean(type: Delete) { + delete(rootProject.buildDir) +} + +task wrapper(type: Wrapper) { + gradleVersion = '2.9' } \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index fd7e590e5..941144813 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 5d18332f7..a59aa86c6 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sun Nov 08 17:18:47 CST 2015 +#Sun Nov 22 23:26:08 CST 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip diff --git a/gradlew b/gradlew index 91a7e269e..9d82f7891 100755 --- a/gradlew +++ b/gradlew @@ -42,11 +42,6 @@ case "`uname`" in ;; esac -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - # Attempt to set APP_HOME # Resolve links: $0 may be a link PRG="$0" @@ -61,9 +56,9 @@ while [ -h "$PRG" ] ; do fi done SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- +cd "`dirname \"$PRG\"`/" >/dev/null APP_HOME="`pwd -P`" -cd "$SAVED" >&- +cd "$SAVED" >/dev/null CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -114,6 +109,7 @@ fi if $cygwin ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` # We build the pattern for arguments to be converted via cygpath ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`