ithxforyou/Setup Java JDK

Set up a specific version of the Java JDK and add the command-line tools to the PATH

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
java-versionThe Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file
java-version-fileThe path to the `.java-version` file. See examples of supported syntax in README file
distributionJava distribution. See the list of supported distributions in README fileyes
java-packageThe package type (jdk, jre, jdk+fx, jre+fx)nojdk
architectureThe architecture of the package (defaults to the action runner's architecture)no
jdkFilePath to where the compressed JDK is locatedno
check-latestSet this option if you want the action to check for the latest available version that satisfies the version specnofalse
server-idID of the distributionManagement repository in the pom.xml file. Default is `github`nogithub
server-usernameEnvironment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTORnoGITHUB_ACTOR
server-passwordEnvironment variable name for password or token for authentication to the Apache Maven repository. Default is $GITHUB_TOKENnoGITHUB_TOKEN
settings-pathPath to where the settings.xml file will be written. Default is ~/.m2.no
overwrite-settingsOverwrite the settings.xml file if it exists. Default is "true".notrue
gpg-private-keyGPG private key to import. Default is empty string.no
gpg-passphraseEnvironment variable name for the GPG private key passphrase. Default is $GPG_PASSPHRASE.no
cacheName of the build platform to cache dependencies. It can be "maven", "gradle" or "sbt".no
cache-dependency-pathThe path to a dependency file: pom.xml, build.gradle, build.sbt, etc. This option can be used with the `cache` option. If this option is omitted, the action searches for the dependency file in the entire repository. This option supports wildcards and a list of file names for caching multiple dependencies.no
job-statusWorkaround to pass job status to post job step. This variable is not intended for manual setting${{ job.status }}
tokenThe token used to authenticate when fetching version manifests hosted on github.com, such as for the Microsoft Build of OpenJDK. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.${{ github.server_url == 'https://github.com' && github.token || '' }}
mvn-toolchain-idName of Maven Toolchain ID if the default name of "${distribution}_${java-version}" is not wanted. See examples of supported syntax in Advanced Usage fileno
mvn-toolchain-vendorName of Maven Toolchain Vendor if the default name of "${distribution}" is not wanted. See examples of supported syntax in Advanced Usage fileno
namedescription
distributionDistribution of Java that has been installed
versionActual version of the java environment that has been installed
pathPath to where the java environment has been installed (same as $JAVA_HOME)
cache-hitA boolean value to indicate an exact match was found for the primary key