2023-07-26 10:35:21 +00:00
|
|
|
name: Setup Java
|
|
|
|
description: Sets up Java.
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
distribution:
|
|
|
|
description: Java distribution.
|
|
|
|
required: false
|
|
|
|
default: temurin
|
|
|
|
java-version:
|
|
|
|
description: The Java version that is going to be set up.
|
|
|
|
required: false
|
2024-06-03 12:17:28 +00:00
|
|
|
default: "21"
|
2023-07-26 10:35:21 +00:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- id: setup-java
|
|
|
|
name: Setup Java
|
2024-03-22 07:57:41 +00:00
|
|
|
uses: actions/setup-java@v4
|
2023-07-26 10:35:21 +00:00
|
|
|
with:
|
|
|
|
distribution: ${{ inputs.distribution }}
|
|
|
|
java-version: ${{ inputs.java-version }}
|