2024-04-13 09:15:08 +00:00
|
|
|
name: 'Setup Gradle'
|
|
|
|
description: 'Checks out the repository and sets up Java and Gradle'
|
|
|
|
inputs:
|
|
|
|
token:
|
|
|
|
description: 'token input for actions/checkout'
|
|
|
|
required: false
|
|
|
|
default: ${{ github.token }}
|
|
|
|
fetch-depth:
|
|
|
|
description: 'fetch-depth input for actions/checkout'
|
|
|
|
required: false
|
|
|
|
default: 1
|
|
|
|
ref:
|
|
|
|
description: 'ref input for actions/checkout'
|
|
|
|
required: false
|
|
|
|
java-version:
|
|
|
|
description: 'java-version input for actions/setup-java'
|
|
|
|
required: false
|
|
|
|
default: 20
|
|
|
|
gradle-version:
|
|
|
|
description: 'gradle-version input for actions/setup-java'
|
|
|
|
required: false
|
|
|
|
cache-read-only:
|
|
|
|
description: 'cache-read-only input for gradle/actions/setup-gradle'
|
|
|
|
required: false
|
|
|
|
default: ${{ github.event.repository != null && github.ref_name != github.event.repository.default_branch }}
|
|
|
|
dependency-graph:
|
|
|
|
description: 'dependency-graph input for gradle/actions/setup-gradle'
|
|
|
|
required: false
|
|
|
|
default: 'disabled'
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2024-09-26 04:44:25 +00:00
|
|
|
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
2024-04-13 09:15:08 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: ${{ inputs.fetch-depth }}
|
|
|
|
ref: ${{ inputs.ref }}
|
|
|
|
token: ${{ inputs.token }}
|
|
|
|
|
|
|
|
- name: Set up JDK
|
2024-09-24 17:34:05 +00:00
|
|
|
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
|
2024-04-13 09:15:08 +00:00
|
|
|
with:
|
|
|
|
distribution: temurin
|
|
|
|
java-version: ${{ inputs.java-version }}
|
|
|
|
|
|
|
|
- name: Setup Gradle
|
2024-09-13 06:26:45 +00:00
|
|
|
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4
|
2024-04-13 09:15:08 +00:00
|
|
|
with:
|
|
|
|
add-job-summary: always
|
2024-08-18 09:07:00 +00:00
|
|
|
cache-cleanup: on-success
|
2024-04-13 09:15:08 +00:00
|
|
|
cache-read-only: ${{ inputs.cache-read-only }}
|
|
|
|
dependency-graph: ${{ inputs.dependency-graph }}
|
|
|
|
gradle-version: ${{ inputs.gradle-version }}
|
|
|
|
validate-wrappers: true
|