Replies: 3 comments 1 reply
-
For Windows: |
Beta Was this translation helpful? Give feedback.
-
The On the other hand, if you are already using Toolchains, you may not need an |
Beta Was this translation helpful? Give feedback.
-
To stop repeating your Java version, set the JAVA_HOME environment variable and add the bin directory to the PATH variable. This ensures your system uses the specified Java version without needing constant repetition. Find your Java installation path:https://vytcdc.us/java-online-training/ On Windows: C:\Program Files\Java\jdk1.x.x On Windows: On Windows: Open a new terminal/cmd window and type: |
Beta Was this translation helpful? Give feedback.
-
I'm currently declaring my Java version in 3 places:
.sdkmanrc
asjava=17.0.9-tem
build.gradle.kts
asjvmToolchain(17)
Dockerfile
asFROM eclipse-temurin:17.0.9_9-jdk-focal
That seems bad... anyone got any tricks for avoiding this redeclaration?
I think I can interpolate into the
Dockerfile
using a.env
file containingJAVA_VERSION=17.0.9_9
, and I can probably hack something in Gradle to read the value from a different file, but it looks like there's no way to parameterise.sdkmanrc
?Beta Was this translation helpful? Give feedback.
All reactions