Skip to content

Commit 73c9e52

Browse files
committed
ci(windows): manually install jdk21
as of feb 24, 2025, codebuild has java8 first in PATH which causes gradle to fail because we require 21
1 parent f8fa131 commit 73c9e52

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

buildspec/windowsTests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ env:
88
phases:
99
install:
1010
commands:
11+
# force install java21 while we work throuh path issues
12+
- |
13+
$url = 'https://corretto.aws/downloads/latest/amazon-corretto-17-x64-windows-jdk.msi';
14+
Write-Host ('Downloading from {0}' -f $url);
15+
[ Net.ServicePointManager ]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
16+
Invoke-WebRequest -Uri $url -OutFile 'corretto_jdk_build.msi';
17+
Start-Process 'corretto_jdk_build.msi' -PassThru | Wait-Process;
18+
Write-Host 'Removing ...';
19+
Remove-Item corretto_jdk_build.msi -Force;
1120
- |
1221
if(-Not($Env:CODE_COV_TOKEN -eq $null)) {
1322
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;

0 commit comments

Comments
 (0)