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:
1313 required : false
1414 default : ' false'
1515 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'
1620 publish :
1721 required : false
1822 default : ' false'
3741 java-version : ${{ inputs.java-version }}
3842 java-early-access : ${{ inputs.java-early-access }}
3943 java-toolchain : ${{ inputs.java-toolchain }}
44+ java-distribution : ${{ inputs.java-distribution }}
4045 - name : Build
4146 id : build
4247 if : ${{ inputs.publish == 'false' }}
Original file line number Diff line number Diff line change @@ -8,11 +8,15 @@ inputs:
88 java-early-access :
99 required : false
1010 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 '
1212 java-toolchain :
1313 required : false
1414 default : ' false'
1515 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'
1620 develocity-access-key :
1721 required : false
1822 description : ' The access key for authentication with ge.spring.io'
2731 - name : Set Up Java
2832 uses : actions/setup-java@v4
2933 with :
30- distribution : ${{ inputs.java-early-access == 'true' && 'temurin' || 'liberica' }}
34+ distribution : ${{ inputs.java-early-access == 'true' && 'temurin' || (inputs.java-distribution || 'liberica') }}
3135 java-version : |
3236 ${{ inputs.java-early-access == 'true' && format('{0}-ea', inputs.java-version) || inputs.java-version }}
3337 ${{ inputs.java-toolchain == 'true' && '17' || '' }}
Original file line number Diff line number Diff line change 2626 - version : 22
2727 toolchain : true
2828 - version : 23
29- early-access : true
29+ distribution : oracle
3030 toolchain : true
3131 exclude :
3232 - os :
4949 java-version : ${{ matrix.java.version }}
5050 java-early-access : ${{ matrix.java.early-access || 'false' }}
5151 java-toolchain : ${{ matrix.java.toolchain }}
52+ java-distribution : ${{ matrix.java.distribution }}
5253 develocity-access-key : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
5354 - name : Send Notification
5455 uses : ./.github/actions/send-notification
You can’t perform that action at this time.
0 commit comments