Switch JAVA_HOME to 21 for JRuby (#721)

* JRuby 10 requires Java 21. Since the previous default was 17 and all JRuby releases should work fine on 21, we do this for all JRuby installs.
* Implements #718
This commit is contained in:
Charles Oliver Nutter
2025-03-12 21:19:38 +01:00
committed by GitHub
parent bbda85882f
commit f0a4d6bddd
3 changed files with 74 additions and 1 deletions
+5
View File
@@ -54,6 +54,11 @@ export async function install(platform, engine, version) {
await downloadAndExtract(platform, engine, version, rubyPrefix)
}
// Ensure JRuby has minimum Java version to run
if (engine === "jruby") {
await common.setupJavaHome()
}
return rubyPrefix
}