From e8f1c8b5cac39d1debdb14c3a64be3e8b907bd20 Mon Sep 17 00:00:00 2001 From: AGulev Date: Tue, 24 May 2022 19:12:23 +0200 Subject: [PATCH] Add Microsoft 11.0.15 --- __tests__/distributors/microsoft-installer.test.ts | 5 +++++ src/distributions/microsoft/installer.ts | 3 +++ 2 files changed, 8 insertions(+) diff --git a/__tests__/distributors/microsoft-installer.test.ts b/__tests__/distributors/microsoft-installer.test.ts index eb77f0e..40868bb 100644 --- a/__tests__/distributors/microsoft-installer.test.ts +++ b/__tests__/distributors/microsoft-installer.test.ts @@ -27,6 +27,11 @@ describe('findPackageForDownload', () => { '11.0.13', '11.0.13', 'https://aka.ms/download-jdk/microsoft-jdk-11.0.13.8.1-{{OS_TYPE}}-x64.{{ARCHIVE_TYPE}}' + ], + [ + '11.0.15', + '11.0.15', + 'https://aka.ms/download-jdk/microsoft-jdk-11.0.15-{{OS_TYPE}}-x64.{{ARCHIVE_TYPE}}' ] ])('version is %s -> %s', async (input, expectedVersion, expectedUrl) => { const result = await distribution['findPackageForDownload'](input); diff --git a/src/distributions/microsoft/installer.ts b/src/distributions/microsoft/installer.ts index 147c543..672b967 100644 --- a/src/distributions/microsoft/installer.ts +++ b/src/distributions/microsoft/installer.ts @@ -93,6 +93,9 @@ export class MicrosoftDistributions extends JavaBase { jdkVersions.push({ version: [11, 0, 13, 8, 1] }); + jdkVersions.push({ + version: [11, 0, 15] + }); } return jdkVersions;