Add java 7 source and target compatibility.

This commit is contained in:
Fernando Cejas
2014-12-11 21:39:08 +01:00
parent 6e285b10b9
commit 169d10fb30
4 changed files with 15 additions and 1 deletions

View File

@ -3,7 +3,7 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:1.0.0-rc2' classpath 'com.android.tools.build:gradle:1.0.0'
} }
} }

View File

@ -7,6 +7,12 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 15 minSdkVersion 15
targetSdkVersion 19 targetSdkVersion 19
versionCode 1
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
} }
packagingOptions { packagingOptions {

View File

@ -1,5 +1,8 @@
apply plugin: 'java' apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies { dependencies {
//test dependencies //test dependencies
testCompile 'junit:junit:4.11' testCompile 'junit:junit:4.11'

View File

@ -13,6 +13,11 @@ android {
testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner" testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"
} }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions { packagingOptions {
exclude 'LICENSE.txt' exclude 'LICENSE.txt'
exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/DEPENDENCIES'