set_java_version
Switches the Java version with SDKMAN before executing commands, ensuring builds use the correct JDK. Optionally verifies the switch in a specified project path.
Instructions
Switch Java version using SDKMAN before running commands. Available versions: 17.0.16-amzn, 21.0.8-tem, 21.0.9-amzn, 25.0.1-tem
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | Java version to switch to (e.g., "17.0.16-amzn", "21.0.8-tem") | |
| projectPath | No | Optional: project path to verify the switch |