Skip to content

Commit

Permalink
Fix (again) Java 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
marianobarrios committed Jan 26, 2020
1 parent 07d91b4 commit 76fe55b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ plugins {
id "com.diffplug.gradle.spotless" version "3.27.0"
}

sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava {
if (JavaVersion.current().ordinal() > JavaVersion.VERSION_1_8.ordinal()) {
options.compilerArgs.addAll(['--release', '8'])
}
}

repositories {
mavenLocal()
Expand Down

0 comments on commit 76fe55b

Please sign in to comment.