1
- name : ' Build'
1
+ name : Build
2
2
description : ' Builds the project, optionally publishing it to a local deployment repository'
3
3
inputs :
4
- java-version :
4
+ commercial-release-repository-url :
5
+ description : ' URL of the release repository'
5
6
required : false
6
- default : ' 17'
7
- description : ' The Java version to compile and test with'
8
- java-early-access :
7
+ commercial-repository-password :
8
+ description : ' Password for authentication with the commercial repository'
9
9
required : false
10
- default : ' false'
11
- description : ' Whether the Java version is in early access'
12
- java-toolchain :
10
+ commercial-repository-username :
11
+ description : ' Username for authentication with the commercial repository'
12
+ required : false
13
+ commercial-snapshot-repository-url :
14
+ description : ' URL of the snapshot repository'
15
+ required : false
16
+ develocity-access-key :
17
+ description : ' Access key for authentication with ge.spring.io'
13
18
required : false
14
- default : ' false'
15
- description : ' Whether a Java toolchain should be used'
16
19
java-distribution :
20
+ description : ' Java distribution to use'
17
21
required : false
18
22
default : ' liberica'
19
- description : ' The distribution of Java to use '
20
- publish :
23
+ java-early-access :
24
+ description : ' Whether the Java version is in early access '
21
25
required : false
22
26
default : ' false'
23
- description : ' Whether to publish artifacts ready for deployment to Artifactory'
24
- develocity-access-key :
25
- required : false
26
- description : ' The access key for authentication with ge.spring.io'
27
- commercial-repository-username :
28
- required : false
29
- description : ' Username for authentication with the commercial repository'
30
- commercial-repository-password :
27
+ java-toolchain :
28
+ description : ' Whether a Java toolchain should be used'
31
29
required : false
32
- description : ' Password for authentication with the commercial repository'
33
- commercial-release-repository-url :
30
+ default : ' false'
31
+ java-version :
32
+ description : ' Java version to compile and test with'
34
33
required : false
35
- description : ' URL of the release repository'
36
- commercial-snapshot-repository-url :
34
+ default : ' 17'
35
+ publish :
36
+ description : ' Whether to publish artifacts ready for deployment to Artifactory'
37
37
required : false
38
- description : ' URL of the snapshot repository '
38
+ default : ' false '
39
39
outputs :
40
40
build-scan-url :
41
- description : ' The URL, if any, of the build scan produced by the build'
41
+ description : ' URL, if any, of the build scan produced by the build'
42
42
value : ${{ (inputs.publish == 'true' && steps.publish.outputs.build-scan-url) || steps.build.outputs.build-scan-url }}
43
43
version :
44
- description : ' The version that was built'
44
+ description : ' Version that was built'
45
45
value : ${{ steps.read-version.outputs.version }}
46
46
runs :
47
47
using : composite
@@ -50,28 +50,28 @@ runs:
50
50
uses : ./.github/actions/prepare-gradle-build
51
51
with :
52
52
develocity-access-key : ${{ inputs.develocity-access-key }}
53
- java-version : ${{ inputs.java-version }}
53
+ java-distribution : ${{ inputs.java-distribution }}
54
54
java-early-access : ${{ inputs.java-early-access }}
55
55
java-toolchain : ${{ inputs.java-toolchain }}
56
- java-distribution : ${{ inputs.java-distribution }}
56
+ java-version : ${{ inputs.java-version }}
57
57
- name : Build
58
58
id : build
59
59
if : ${{ inputs.publish == 'false' }}
60
60
shell : bash
61
61
env :
62
- COMMERCIAL_REPO_USERNAME : ${{ inputs.commercial-repository-username }}
63
- COMMERCIAL_REPO_PASSWORD : ${{ inputs.commercial-repository-password }}
64
62
COMMERCIAL_RELEASE_REPO_URL : ${{ inputs.commercial-release-repository-url }}
63
+ COMMERCIAL_REPO_PASSWORD : ${{ inputs.commercial-repository-password }}
64
+ COMMERCIAL_REPO_USERNAME : ${{ inputs.commercial-repository-username }}
65
65
COMMERCIAL_SNAPSHOT_REPO_URL : ${{ inputs.commercial-snapshot-repository-url }}
66
66
run : ./gradlew build
67
67
- name : Publish
68
68
id : publish
69
69
if : ${{ inputs.publish == 'true' }}
70
70
shell : bash
71
71
env :
72
- COMMERCIAL_REPO_USERNAME : ${{ inputs.commercial-repository-username }}
73
- COMMERCIAL_REPO_PASSWORD : ${{ inputs.commercial-repository-password }}
74
72
COMMERCIAL_RELEASE_REPO_URL : ${{ inputs.commercial-release-repository-url }}
73
+ COMMERCIAL_REPO_PASSWORD : ${{ inputs.commercial-repository-password }}
74
+ COMMERCIAL_REPO_USERNAME : ${{ inputs.commercial-repository-username }}
75
75
COMMERCIAL_SNAPSHOT_REPO_URL : ${{ inputs.commercial-snapshot-repository-url }}
76
76
run : ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && 'build' || '' }} publishAllPublicationsToDeploymentRepository
77
77
- name : Read Version From gradle.properties
0 commit comments