Skip to content

Commit

Permalink
fix test run with default javaHome (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
QIvan authored Sep 12, 2020
1 parent dd113b8 commit 53a0099
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ subprojects {
}
options.compilerArgs.add('-XDignore.symbol.file') // Suppress warnings about using Unsafe
options.fork = true
options.forkOptions.javaHome = file("${System.env.JAVA_HOME}")
def javaHome = System.env.JAVA_HOME
if (javaHome != null) {
options.forkOptions.javaHome = file(javaHome)
}
options.encoding = 'UTF-8'
options.deprecation = true
}
Expand Down

0 comments on commit 53a0099

Please sign in to comment.