This Step helps you activate pre-installed Java (JDK) version on the build virtual machine.
Description
This Step is not supposed to install any Java version on the fly. You can only pick from the already installed versions. If you want to install other Java versions, check out Using a Java version not installed on our Android stacks.
- In the Java version to be set globally for the build input, select an installed Java version you wish to use during the build run.
If the Step fails to set the Java version, you can use these scripts as a temporary workaround.
Add this step directly to your workflow in the Bitrise Workflow Editor.
You can also run this step directly with Bitrise CLI.
Inputs
Key | Description | Flags | Default |
---|---|---|---|
set_java_version |
Select the installed Java version you want to use during the build run. You can check in system reports which Java versions are installed on each Bitrise stack. | required | 11 |
Outputs
Environment Variable | Description |
---|---|
JAVA_HOME |
JAVA_HOME is an environment variable that points to the path where the JDK (Java Development Kit) is installed. |
We welcome pull requests and issues against this repository.
For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.
Learn more about developing steps: