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-06-12 19:57:14 +00:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
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-08-05 15:31:52 +00:00
|
|
|
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
|
2024-04-13 09:15:08 +00:00
|
|
|
with:
|
|
|
|
distribution: temurin
|
|
|
|
java-version: ${{ inputs.java-version }}
|
|
|
|
|
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
shell: bash
|
|
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
|
|
|
- name: Setup Gradle
|
2024-08-27 02:20:19 +00:00
|
|
|
uses: gradle/actions/setup-gradle@16bf8bc8fe830fa669c3c9f914d3eb147c629707 # 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
|