Skip to content

Commit

Permalink
Issue 3258: Build fails on JDK11: Bytecode is targeted jdk11 and not …
Browse files Browse the repository at this point in the history
…jdk8 (pravega#3259)

Force java source and target version to be "8", by setting sourceCompatibility and targetCompatibily after project 'evaluation'.

Signed-off-by: Enrico Olivelli <[email protected]>
  • Loading branch information
eolivelli authored and tkaitchuck committed Jan 23, 2019
1 parent b9ef3fe commit fe56809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ allprojects {

gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
sourceCompatibility = "8"
targetCompatibility = "8"
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
Expand Down
2 changes: 0 additions & 2 deletions gradle/java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ plugins.withId('java') {
apply plugin: 'maven'

compileJava {
sourceCompatibility = "8"
targetCompatibility = "8"

options.compilerArgs.addAll([
"-Xlint:deprecation",
Expand Down

0 comments on commit fe56809

Please sign in to comment.