@@ -110,7 +110,8 @@ local common_json = import "../common.json";
110
110
oraclejdkLatest: self ["oraclejdk-latest" ],
111
111
},
112
112
113
- # The devkits versions reflect those used to build the JVMCI JDKs (e.g., see devkit_platform_revisions in <jdk>/make/conf/jib-profiles.js)
113
+ # The devkits versions reflect those used to build the JVMCI JDKs (e.g., see devkit_platform_revisions in <jdk>/make/conf/jib-profiles.js).
114
+ # See deps.windows_devkit to add a devkit on windows conveniently.
114
115
devkits: {
115
116
"windows-jdk17" : { packages+: { "devkit:VS2022-17.1.0+1" : "==0" }},
116
117
"windows-jdk19" : { packages+: { "devkit:VS2022-17.1.0+1" : "==0" }},
@@ -175,6 +176,12 @@ local common_json = import "../common.json";
175
176
176
177
# These dependencies are not included by default in any platform object
177
178
179
+ # Not included by default in $.windows_amd64 and $.windows_server_2016_amd64 because it needs jdk_name.
180
+ # As a note, Native Image needs this to build.
181
+ windows_devkit:: {
182
+ packages+: if self .os == "windows" then $.devkits["windows-" + self .jdk_name].packages else {},
183
+ },
184
+
178
185
eclipse: {
179
186
downloads+: {
180
187
ECLIPSE: {
@@ -240,6 +247,21 @@ local common_json = import "../common.json";
240
247
} else {},
241
248
},
242
249
250
+ maven:: {
251
+ local this = self ,
252
+ packages+: (if self .os == "linux" && self .arch == "amd64" then {
253
+ maven: '==3.9.10' ,
254
+ } else {}),
255
+ # no maven package available on other platforms
256
+ downloads+: (if self .os != "linux" || self .arch != "amd64" then {
257
+ # GR-68921: 3.9.10 does not work on Windows
258
+ MAVEN_HOME: {name: 'maven' , version: (if this.os == "windows" then '3.3.9' else '3.9.10' ), platformspecific: false },
259
+ } else {}),
260
+ setup+: (if self .os != "linux" || self .arch != "amd64" then [
261
+ ['set-export' , 'PATH' , (if self .os == "windows" then '$MAVEN_HOME\\ bin;$PATH' else '$MAVEN_HOME/bin:$PATH' )],
262
+ ] else []),
263
+ },
264
+
243
265
sulong:: self .cmake + {
244
266
packages+: if self .os == "windows" then {
245
267
msvc_source: "==14.0" ,
@@ -276,12 +298,11 @@ local common_json = import "../common.json";
276
298
} else {},
277
299
},
278
300
279
- graalpy:: self .gradle + self .cmake + {
301
+ graalpy:: self .gradle + self .cmake + self .maven + {
280
302
packages+: if (self .os == "linux" ) then {
281
303
libffi: '==3.2.1' ,
282
304
bzip2: '==1.0.6' ,
283
305
zlib: '==1.2.11' ,
284
- maven: "==3.6.3" ,
285
306
} else {},
286
307
},
287
308
0 commit comments