diff --git a/build.gradle b/build.gradle index 787fa32c..f4cd4120 100644 --- a/build.gradle +++ b/build.gradle @@ -11,11 +11,11 @@ buildscript { dependencies { classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.3' - classpath 'com.android.tools.build:gradle:1.0.1' + classpath 'com.android.tools.build:gradle:2.1.2' // for aar/maven stuff - // https://github.com/dcendents/android-maven-plugin - classpath 'com.github.dcendents:android-maven-plugin:1.2' + // https://github.com/dcendents/android-maven-gradle-plugin + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' } } @@ -23,10 +23,6 @@ def filterProjects(filter) { return subprojects.findAll { project -> filter.contains(project.name) } } -task wrapper(type: Wrapper) { - gradleVersion = '2.3' -} - //apply from:'jdee.gradle' allprojects { @@ -34,7 +30,7 @@ allprojects { version = '0.6.0-SNAPSHOT' ext.gdxVersion = "1.4.1" - ext.androidBuildVersionTools = "22" + ext.androidBuildVersionTools = "23.0.3" repositories { maven { url 'https://github.com/hjanetzek/maven-repo/raw/master/' } @@ -51,7 +47,7 @@ allprojects { } def androidMinSdk() { return 10 } -def androidTargetSdk() { return 21 } +def androidTargetSdk() { return 23 } def versionCode() { return 50 } def versionName() { return version } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 085a1cdc..13372aef 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 d73863e3..122a0dca 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Thu Mar 19 13:11:24 CET 2015 +#Mon Dec 28 10:00:20 PST 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip diff --git a/gradlew b/gradlew index 91a7e269..9d82f789 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` diff --git a/settings.gradle b/settings.gradle index 704fd573..c9a20b97 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,4 @@ +rootProject.name = 'vtm-parent' include ':appcompat' include ':vtm' include ':vtm-tests' diff --git a/vtm-android-example/build.gradle b/vtm-android-example/build.gradle index 87993bcb..c2f62d45 100644 --- a/vtm-android-example/build.gradle +++ b/vtm-android-example/build.gradle @@ -10,6 +10,7 @@ dependencies { compile project(':vtm-jeo') compile project(':vtm-extras') compile project(':vtm-themes') + compile files("${rootDir}/vtm-ext-libs/native-libs.jar") compile 'com.android.support:support-v4:22.+' compile 'com.android.support:appcompat-v7:22.+' diff --git a/vtm-android-start/build.gradle b/vtm-android-start/build.gradle index adcbd921..ca6eadfd 100644 --- a/vtm-android-start/build.gradle +++ b/vtm-android-start/build.gradle @@ -8,6 +8,7 @@ configurations { dependencies { compile project(':vtm-android') compile project(':vtm-themes') + compile files("${rootDir}/vtm-ext-libs/native-libs.jar") compile 'com.android.support:support-v4:22.+' compile 'com.android.support:appcompat-v7:22.+' diff --git a/vtm-android/build.gradle b/vtm-android/build.gradle index 5e195de9..86ec75ea 100644 --- a/vtm-android/build.gradle +++ b/vtm-android/build.gradle @@ -1,5 +1,5 @@ apply plugin: 'com.android.library' -apply plugin: 'android-maven' +apply plugin: 'com.github.dcendents.android-maven' configurations { eclipseCompile @@ -98,3 +98,15 @@ eclipse { locationUri: 'PARENT-1-PROJECT_LOC/vtm-ext-libs/vtm-android' } } + +android.libraryVariants.all { variant -> + def name = variant.buildType.name + if (name.equals("debug")) { + print "Skipping debug jar" + return; // Skip debug builds. + } + def task = project.tasks.create "jar${name.capitalize()}", Jar + task.dependsOn variant.javaCompile + task.from variant.javaCompile.destinationDir + artifacts.add('archives', task); +}