Skip to content

Commit

Permalink
#495 only use --module-path compiler option when running on Java 9 or…
Browse files Browse the repository at this point in the history
… higher
  • Loading branch information
remkop committed Apr 12, 2019
1 parent 4a0169d commit 98f5a06
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions picocli-core-module/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ task copyRootProjectCode(type: Copy) {
compileJava {
inputs.property("moduleName", moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
]
if (org.gradle.api.JavaVersion.current().isJava9Compatible()) {
options.compilerArgs = [
'--module-path', classpath.asPath,
]
}
classpath = files()
}
}
Expand Down

0 comments on commit 98f5a06

Please sign in to comment.