Skip to content

Commit

Permalink
Merge pull request #342 from gdams/msft
Browse files Browse the repository at this point in the history
msft: bump jdk17 to 17.0.3 and add aarch64 support to jdk11
  • Loading branch information
marko-zivic-93 committed Jun 10, 2022
2 parents ec303d3 + 4fba831 commit ddbbc2f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
7 changes: 6 additions & 1 deletion __tests__/distributors/microsoft-installer.test.ts
Expand Up @@ -14,10 +14,15 @@ describe('findPackageForDownload', () => {

it.each([
[
'17.x',
'17.0.1',
'17.0.1',
'https://aka.ms/download-jdk/microsoft-jdk-17.0.1.12.1-{{OS_TYPE}}-x64.{{ARCHIVE_TYPE}}'
],
[
'17.x',
'17.0.3',
'https://aka.ms/download-jdk/microsoft-jdk-17.0.3-{{OS_TYPE}}-x64.{{ARCHIVE_TYPE}}'
],
[
'16.0.x',
'16.0.2',
Expand Down
9 changes: 6 additions & 3 deletions dist/setup/index.js
Expand Up @@ -101717,21 +101717,24 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
// TODO get these dynamically!
// We will need Microsoft to add an endpoint where we can query for versions.
const jdkVersions = [
{
version: [17, 0, 3]
},
{
version: [17, 0, 1, 12, 1]
},
{
version: [16, 0, 2, 7, 1]
},
{
version: [11, 0, 15]
}
];
// M1 is only supported for Java 16 & 17
if (process.platform !== 'darwin' || this.architecture !== 'aarch64') {
jdkVersions.push({
version: [11, 0, 13, 8, 1]
});
jdkVersions.push({
version: [11, 0, 15]
});
}
return jdkVersions;
});
Expand Down
9 changes: 6 additions & 3 deletions src/distributions/microsoft/installer.ts
Expand Up @@ -80,11 +80,17 @@ export class MicrosoftDistributions extends JavaBase {
// TODO get these dynamically!
// We will need Microsoft to add an endpoint where we can query for versions.
const jdkVersions = [
{
version: [17, 0, 3]
},
{
version: [17, 0, 1, 12, 1]
},
{
version: [16, 0, 2, 7, 1]
},
{
version: [11, 0, 15]
}
];

Expand All @@ -93,9 +99,6 @@ export class MicrosoftDistributions extends JavaBase {
jdkVersions.push({
version: [11, 0, 13, 8, 1]
});
jdkVersions.push({
version: [11, 0, 15]
});
}

return jdkVersions;
Expand Down

0 comments on commit ddbbc2f

Please sign in to comment.