Skip to content

Commit

Permalink
fix: Groovy compiler now runs correctly
Browse files Browse the repository at this point in the history
The `JAVA_HOME` wasn't being set up correctly. This was a regression.

Fixes #1554
  • Loading branch information
quintesse committed Feb 7, 2023
1 parent 006959a commit 098d7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/jbang/source/sources/GroovySource.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected void runCompiler(ProcessBuilder processBuilder) throws IOException {
if (project.getMainSource() instanceof GroovySource) {
processBuilder .environment()
.put("JAVA_HOME",
JdkManager.getOrInstallJdk(project.getJavaVersion()).toString());
JdkManager.getOrInstallJdk(project.getJavaVersion()).getHome().toString());
processBuilder.environment().remove("GROOVY_HOME");
}
super.runCompiler(processBuilder);
Expand Down

0 comments on commit 098d7fe

Please sign in to comment.