Skip to content

Commit

Permalink
[BUILD] fix error: Source option 6 is no longer supported. Use 7 or l…
Browse files Browse the repository at this point in the history
…ater.

(Task :picocli-codegen:compileJava)
  • Loading branch information
remkop committed Mar 2, 2022
1 parent 5fae277 commit 2158dcb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions picocli-codegen/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ description 'Picocli Code Generation - Tools to generate documentation, configur
version "$projectVersion"
ext.moduleName = 'info.picocli.codegen'

sourceCompatibility = 1.6
targetCompatibility = 1.6
if (!JavaVersion.current().isJava9Compatible()) {
sourceCompatibility = 1.6
targetCompatibility = 1.6
} else { // from Java 9 and up
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

dependencies {
api rootProject
Expand Down

0 comments on commit 2158dcb

Please sign in to comment.