21
21
workflow_call :
22
22
inputs :
23
23
maven_args :
24
- description : The arguments to pass to Maven when building the code
24
+ description : ' The arguments to pass to Maven when building the code'
25
25
required : false
26
- default : --batch-mode --errors --show-version verify javadoc:javadoc
26
+ default : ' --batch-mode --errors --show-version verify javadoc:javadoc'
27
+ type : string
28
+
29
+ maven-version :
30
+ description : ' The Maven version used during build job'
31
+ required : false
32
+ default : ' 3.9.6'
27
33
type : string
28
34
29
35
os-matrix :
51
57
type : string
52
58
53
59
jdk-distribution-matrix :
54
- description : " jdk distribution matrix"
60
+ description : ' jdk distribution matrix'
55
61
required : false
56
62
default : ' [ "temurin" ]'
57
63
type : string
58
64
59
65
jdk-fast-fail-build :
60
- description : " jdk fast fail build"
66
+ description : ' jdk fast fail build'
61
67
required : false
62
68
default : ' 17'
63
69
type : string
64
70
65
71
jdk-distribution-fast-fail-build :
66
- description : " jdk distribution fast fail build"
72
+ description : ' jdk distribution fast fail build'
67
73
required : false
68
74
default : ' temurin'
69
75
type : string
84
90
distribution : ${{ inputs.jdk-distribution-fast-fail-build }}
85
91
cache : ' maven'
86
92
93
+ - name : Set up Maven
94
+ run : mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.2.0:wrapper "-Dtype=only-script" "-Dmaven=${{ inputs.maven-version }}"
95
+
87
96
- name : Build with Maven
88
- run : mvn ${{ inputs.maven_args }}
97
+ run : ./mvnw ${{ inputs.maven_args }}
89
98
90
99
build-experimental :
91
100
name : Experimental Java 21 build
@@ -96,18 +105,21 @@ jobs:
96
105
fail-fast : false
97
106
continue-on-error : true
98
107
steps :
99
- - name : Checkout
100
- uses : actions/checkout@v4
108
+ - name : Checkout
109
+ uses : actions/checkout@v4
101
110
102
- - name : Set up JDK
103
- uses : actions/setup-java@v4
104
- with :
105
- java-version : ' 21'
106
- distribution : ' corretto'
107
- cache : ' maven'
111
+ - name : Set up JDK
112
+ uses : actions/setup-java@v4
113
+ with :
114
+ java-version : ' 21'
115
+ distribution : ' corretto'
116
+ cache : ' maven'
108
117
109
- - name : Build with Maven
110
- run : mvn ${{ inputs.maven_args }}
118
+ - name : Set up Maven
119
+ run : mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.2.0:wrapper "-Dtype=only-script" "-Dmaven=${{ inputs.maven-version }}"
120
+
121
+ - name : Build with Maven
122
+ run : ./mvnw ${{ inputs.maven_args }}
111
123
112
124
verify :
113
125
needs : build
@@ -134,6 +146,9 @@ jobs:
134
146
distribution : ${{ matrix.distribution }}
135
147
cache : ' maven'
136
148
149
+ - name : Set up Maven
150
+ run : mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.2.0:wrapper "-Dtype=only-script" "-Dmaven=${{ inputs.maven-version }}"
151
+
137
152
- name : Build with Maven
138
- run : mvn ${{ inputs.maven_args }}
153
+ run : ./mvnw ${{ inputs.maven_args }}
139
154
0 commit comments