alanbinu007/Setup Java JDK
Set up a specific version of the Java JDK and add the command-line tools to the PATH
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Sep 18, 2021
- License
- BSD
- Runtime
- Deprecated runtime
Pinned Snippet
uses: alanbinu007/react-native-music-player@b3a820a5ddcaab6090214a77217cc7d26cd9e868 # v1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| java-version | The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file | yes | — |
| distribution | Java distribution. See the list of supported distributions in README file | yes | — |
| java-package | The package type (jdk, jre, jdk+fx, jre+fx) | no | jdk |
| architecture | The architecture of the package | no | x64 |
| jdkFile | Path to where the compressed JDK is located | no | — |
| check-latest | Set this option if you want the action to check for the latest available version that satisfies the version spec | no | false |
| server-id | ID of the distributionManagement repository in the pom.xml file. Default is `github` | no | github |
| server-username | Environment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTOR | no | GITHUB_ACTOR |
| server-password | Environment variable name for password or token for authentication to the Apache Maven repository. Default is $GITHUB_TOKEN | no | GITHUB_TOKEN |
| settings-path | Path to where the settings.xml file will be written. Default is ~/.m2. | no | — |
| overwrite-settings | Overwrite the settings.xml file if it exists. Default is "true". | no | true |
| gpg-private-key | GPG private key to import. Default is empty string. | no | — |
| gpg-passphrase | Environment variable name for the GPG private key passphrase. Default is $GPG_PASSPHRASE. | no | — |
| cache | Name of the build platform to cache dependencies. It can be "maven" or "gradle". | no | — |
| job-status | Workaround to pass job status to post job step. This variable is not intended for manual setting | — | ${{ job.status }} |
Outputs
| name | description |
|---|---|
| distribution | Distribution of Java that has been installed |
| version | Actual version of the java environment that has been installed |
| path | Path to where the java environment has been installed (same as $JAVA_HOME) |