Skip to content

Commit

Permalink
Added sourceCompatibility and targetCompatibilitiy
Browse files Browse the repository at this point in the history
  • Loading branch information
sockeqwe committed May 27, 2015
1 parent 979a11a commit eb635d0
Show file tree
Hide file tree
Showing 15 changed files with 71 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ ext {
buildToolsVersion = '22.0.1'
compileSdkVersion = 22

javaSourceCompatibility = JavaVersion.VERSION_1_7
javaTargetCompatibility = JavaVersion.VERSION_1_7

// Libraries
appcompat7Version = '22.1.1'
recyclerviewVersion = '22.1.1'
Expand Down
5 changes: 5 additions & 0 deletions core-dagger1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
minSdkVersion rootProject.ext.minSdk
targetSdkVersion rootProject.ext.targetSdk
Expand Down
5 changes: 5 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
minSdkVersion rootProject.ext.minSdk
targetSdkVersion rootProject.ext.targetSdk
Expand Down
3 changes: 3 additions & 0 deletions mvp-common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
apply plugin: 'java'
apply from: '../maven-push-java-lib.gradle'

sourceCompatibility = rootProject.ext.javaSourceCompatibility
targetCompatibility = rootProject.ext.javaTargetCompatibility
5 changes: 5 additions & 0 deletions mvp-dagger1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}
}

dependencies {
Expand Down
5 changes: 5 additions & 0 deletions mvp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ android {
}
}

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

/*
testOptions {
unitTests.returnDefaultValues = true
Expand Down
7 changes: 7 additions & 0 deletions retrofit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
minSdkVersion rootProject.ext.minSdk
targetSdkVersion rootProject.ext.targetSdk
Expand All @@ -17,6 +22,8 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}


}

dependencies {
Expand Down
5 changes: 5 additions & 0 deletions rx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
minSdkVersion rootProject.ext.minSdk
targetSdkVersion rootProject.ext.targetSdk
Expand Down
5 changes: 5 additions & 0 deletions sample-dagger1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
applicationId "com.hannesdorfmann.mosby.sample.dagger1"
minSdkVersion rootProject.ext.minSdk
Expand Down
5 changes: 5 additions & 0 deletions sample-dagger2-rx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
applicationId "com.hannesdorfmann.mosby.sample.dagger2"
minSdkVersion rootProject.ext.minSdk
Expand Down
5 changes: 5 additions & 0 deletions sample-mail/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdk
Expand Down
5 changes: 5 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
applicationId "com.hannesdorfmann.mosby.sample"
minSdkVersion rootProject.ext.minSdk
Expand Down
3 changes: 3 additions & 0 deletions testing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
apply plugin: 'java'
apply from: '../maven-push-java-lib.gradle'

sourceCompatibility = rootProject.ext.javaSourceCompatibility
targetCompatibility = rootProject.ext.javaTargetCompatibility

dependencies {
compile project(':mvp-common')
compile 'junit:junit:'+rootProject.ext.junitVersion
Expand Down
5 changes: 5 additions & 0 deletions viewstate-dagger1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
minSdkVersion rootProject.ext.minSdk
targetSdkVersion rootProject.ext.targetSdk
Expand Down
5 changes: 5 additions & 0 deletions viewstate/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

defaultConfig {
minSdkVersion rootProject.ext.minSdk
targetSdkVersion rootProject.ext.targetSdk
Expand Down

0 comments on commit eb635d0

Please sign in to comment.