I've got everything in my project using Java17:
% echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/
% which java
/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/java
% which jshell
/Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/jshell
Similarly, my build.gradle specifies Java17 in all the right places and if I call System.getProperty("java.version"), it prints "17.0.1".
But, when I run ./gradlew --console plain jshell, I get this:
...
> Task :jshell
| Welcome to JShell -- Version 11.0.7
| For an introduction type: /help intro
jshell>
Is this configurable somewhere?
I've got everything in my project using Java17:
Similarly, my
build.gradlespecifies Java17 in all the right places and if I callSystem.getProperty("java.version"), it prints "17.0.1".But, when I run
./gradlew --console plain jshell, I get this:Is this configurable somewhere?