Skip to content

Commit 3ee1fd5

Browse files
committed
[GR-68313] Add deps.maven in ci/common.jsonnet
* Needed for many jobs and quite tricky.
1 parent 9b8fa02 commit 3ee1fd5

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

ci/common.jsonnet

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,19 @@ local common_json = import "../common.json";
239239
} else {},
240240
},
241241

242+
maven:: {
243+
packages+: (if self.os == "linux" && self.arch == "amd64" then {
244+
maven: '==3.9.10',
245+
} else {}),
246+
# no maven package available on other platforms
247+
downloads+: (if self.os != "linux" || self.arch != "amd64" then {
248+
MAVEN_HOME: {name: 'maven', version: '3.9.10', platformspecific: false},
249+
} else {}),
250+
setup+: (if self.os != "linux" || self.arch != "amd64" then [
251+
['set-export', 'PATH', (if self.os == "windows" then '$MAVEN_HOME\\bin;$PATH' else '$MAVEN_HOME/bin:$PATH')],
252+
] else []),
253+
},
254+
242255
sulong:: self.cmake + {
243256
packages+: if self.os == "windows" then {
244257
msvc_source: "==14.0",
@@ -275,12 +288,11 @@ local common_json = import "../common.json";
275288
} else {},
276289
},
277290

278-
graalpy:: self.gradle + self.cmake + {
291+
graalpy:: self.gradle + self.cmake + self.maven + {
279292
packages+: if (self.os == "linux") then {
280293
libffi: '==3.2.1',
281294
bzip2: '==1.0.6',
282295
zlib: '==1.2.11',
283-
maven: "==3.6.3",
284296
} else {},
285297
},
286298

0 commit comments

Comments
 (0)