Skip to content

Commit

Permalink
chore: Use jdk8
Browse files Browse the repository at this point in the history
  • Loading branch information
PLNech committed May 23, 2018
1 parent da46820 commit 805f27e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 4 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@ kotlin {
coroutines "enable"
}
}

gradle.projectsEvaluated {
tasks.withType(JavaCompile) { options.compilerArgs << "-Xmaxerrs" << "500" }
}
18 changes: 16 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ buildscript {
// in the individual module build.gradle files
}
}
apply plugin: 'kotlin'

allprojects {
repositories {
Expand All @@ -27,6 +28,19 @@ allprojects {
}
}

task clean(type: Delete) {
delete rootProject.buildDir
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}

0 comments on commit 805f27e

Please sign in to comment.