Add retrolambda support

This commit is contained in:
Bradlee Speice 2014-06-10 19:30:45 -04:00
parent a7e185690e
commit 3f5909be08
4 changed files with 11 additions and 5 deletions

View File

@ -1,5 +1,6 @@
apply plugin: 'android' apply plugin: 'android'
apply plugin: 'android-apt' apply plugin: 'android-apt'
apply plugin: 'retrolambda'
buildscript { buildscript {
repositories { repositories {
@ -7,6 +8,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.2+' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.2+'
classpath 'me.tatarka:gradle-retrolambda:1.3.2'
} }
} }
@ -43,7 +45,7 @@ dependencies {
android { android {
compileSdkVersion 19 compileSdkVersion 19
buildToolsVersion "19.0.3" buildToolsVersion "19.1.0"
sourceSets { sourceSets {
main { main {
@ -82,4 +84,8 @@ android {
lintOptions { lintOptions {
abortOnError false abortOnError false
} }
}
retrolambda {
jdk '/usr/lib/jvm/java-8-oracle'
} }

View File

@ -6,7 +6,7 @@ dependencies {
android { android {
compileSdkVersion 19 compileSdkVersion 19
buildToolsVersion "19.0.3" buildToolsVersion "19.1.0"
sourceSets { sourceSets {
main { main {

View File

@ -4,6 +4,6 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:0.9.+' classpath 'com.android.tools.build:gradle:0.11.+'
} }
} }

View File

@ -1,6 +1,6 @@
#Mon May 05 23:06:48 EDT 2014 #Tue Jun 10 19:26:46 EDT 2014
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-all.zip distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip