File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 3
3
name : ' java-setup-gradle'
4
4
description : ' java-setup-gradle'
5
5
6
+ inputs :
7
+ DISTRIBUTION :
8
+ description : " jdk distribution to use"
9
+ required : false
10
+ default : ' temurin'
11
+
6
12
runs :
7
13
using : " composite"
8
14
steps :
9
15
- name : Set up JDK 21
10
16
uses : actions/setup-java@v4
11
17
with :
12
18
java-version : 21
13
- distribution : ' temurin '
19
+ distribution : ' ${{ inputs.DISTRIBUTION }} '
14
20
15
21
- name : Setup Gradle
16
- uses : gradle/actions/setup-gradle@v4
22
+ uses : gradle/actions/setup-gradle@v4
23
+
24
+ - name : Setup cache
25
+ uses : actions/cache@v4
26
+ with :
27
+ path : |
28
+ ~/.gradle/caches
29
+ ~/.gradle/wrapper
30
+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/versions.gradle') }}-${{ github.sha }}
31
+ restore-keys : |
32
+ ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/versions.gradle') }}
33
+ ${{ runner.os }}-gradle-
You can’t perform that action at this time.
0 commit comments