Skip to content

Bitrise step for selecting the java version used during the build

License

Notifications You must be signed in to change notification settings

bitrise-steplib/bitrise-step-set-java-version

Repository files navigation

Set Java version

Step changelog

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.

Configuring the Step

  1. 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.

Troubleshooting

If the Step fails to set the Java version, you can use these scripts as a temporary workaround.

Useful links

🧩 Get started

Add this step directly to your workflow in the Bitrise Workflow Editor.

You can also run this step directly with Bitrise CLI.

⚙️ Configuration

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.

🙋 Contributing

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: