File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ inputs:
13
13
required : false
14
14
default : ' false'
15
15
description : ' Whether a Java toolchain should be used'
16
+ java-distribution :
17
+ required : false
18
+ default : ' liberica'
19
+ description : ' The distribution of Java to use'
16
20
publish :
17
21
required : false
18
22
default : ' false'
37
41
java-version : ${{ inputs.java-version }}
38
42
java-early-access : ${{ inputs.java-early-access }}
39
43
java-toolchain : ${{ inputs.java-toolchain }}
44
+ java-distribution : ${{ inputs.java-distribution }}
40
45
- name : Build
41
46
id : build
42
47
if : ${{ inputs.publish == 'false' }}
Original file line number Diff line number Diff line change @@ -8,11 +8,15 @@ inputs:
8
8
java-early-access :
9
9
required : false
10
10
default : ' false'
11
- description : ' Whether the Java version is in early access'
11
+ description : ' Whether the Java version is in early access. When true, forces java-distribution to temurin '
12
12
java-toolchain :
13
13
required : false
14
14
default : ' false'
15
15
description : ' Whether a Java toolchain should be used'
16
+ java-distribution :
17
+ required : false
18
+ default : ' liberica'
19
+ description : ' The distribution of Java to use'
16
20
develocity-access-key :
17
21
required : false
18
22
description : ' The access key for authentication with ge.spring.io'
27
31
- name : Set Up Java
28
32
uses : actions/setup-java@v4
29
33
with :
30
- distribution : ${{ inputs.java-early-access == 'true' && 'temurin' || 'liberica' }}
34
+ distribution : ${{ inputs.java-early-access == 'true' && 'temurin' || inputs.java-distribution }}
31
35
java-version : |
32
36
${{ inputs.java-early-access == 'true' && format('{0}-ea', inputs.java-version) || inputs.java-version }}
33
37
${{ inputs.java-toolchain == 'true' && '17' || '' }}
Original file line number Diff line number Diff line change 26
26
- version : 22
27
27
toolchain : true
28
28
- version : 23
29
- early-access : true
29
+ distribution : oracle
30
30
toolchain : true
31
31
exclude :
32
32
- os :
49
49
java-version : ${{ matrix.java.version }}
50
50
java-early-access : ${{ matrix.java.early-access || 'false' }}
51
51
java-toolchain : ${{ matrix.java.toolchain }}
52
+ java-distribution : ${{ matrix.java.distribution }}
52
53
develocity-access-key : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
53
54
- name : Send Notification
54
55
uses : ./.github/actions/send-notification
You can’t perform that action at this time.
0 commit comments