Skip to content

Commit

Permalink
Ensure JDK 8 is used with Gradle
Browse files Browse the repository at this point in the history
Fixes: #4823
  • Loading branch information
geoand committed Oct 29, 2019
1 parent 226cf43 commit 49d1e39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@ compileJava {
options.compilerArgs << '-parameters'
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}


Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ quarkusDev {
setSourceDir("$projectDir/src/main/kotlin")
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}

0 comments on commit 49d1e39

Please sign in to comment.