File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ extends:
4444 - checkout : self
4545 fetchTags : false
4646 - task : JavaToolInstaller@0
47- displayName : Use Java 17
47+ displayName : Use Java 21
4848 inputs :
49- versionSpec : " 17 "
49+ versionSpec : " 21 "
5050 jdkArchitectureOption : x64
5151 jdkSourceOption : PreInstalled
5252 - task : NodeTool@0
Original file line number Diff line number Diff line change @@ -48,20 +48,20 @@ extends:
4848 versionSpec : 20.x
4949 # The image does not have jdk preinstalled, we need to download it first.
5050 - task : PowerShell@2
51- displayName : Download JDK 17
51+ displayName : Download JDK 21
5252 inputs :
5353 targetType : ' inline'
5454 script : |-
5555 New-Item -ItemType Directory -Path "$env:AGENT_TEMPDIRECTORY\downloadjdk"
56- Invoke-WebRequest -Uri "https://aka.ms/download-jdk/microsoft-jdk-17 -windows-x64.zip" -OutFile "$env:AGENT_TEMPDIRECTORY\downloadjdk\microsoft-jdk-17 -windows-x64.zip"
56+ Invoke-WebRequest -Uri "https://aka.ms/download-jdk/microsoft-jdk-21 -windows-x64.zip" -OutFile "$env:AGENT_TEMPDIRECTORY\downloadjdk\microsoft-jdk-21 -windows-x64.zip"
5757 - task : JavaToolInstaller@0
58- displayName : Use Java 17
58+ displayName : Use Java 21
5959 inputs :
60- versionSpec : " 17 "
60+ versionSpec : " 21 "
6161 jdkArchitectureOption : x64
6262 jdkSourceOption : LocalDirectory
63- jdkFile : $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-17 -windows-x64.zip
64- jdkDestinationDirectory : $(Agent.ToolsDirectory)/ms-jdk17
63+ jdkFile : $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-21 -windows-x64.zip
64+ jdkDestinationDirectory : $(Agent.ToolsDirectory)/ms-jdk21
6565 - script : java --version
6666 displayName : ' Check Java installation'
6767 - task : Npm@1
Original file line number Diff line number Diff line change @@ -43,20 +43,20 @@ extends:
4343 versionSpec : 20.x
4444 # The image does not have jdk preinstalled, we need to download it first.
4545 - task : PowerShell@2
46- displayName : Download JDK 17
46+ displayName : Download JDK 21
4747 inputs :
4848 targetType : ' inline'
4949 script : |-
5050 New-Item -ItemType Directory -Path "$env:AGENT_TEMPDIRECTORY\downloadjdk"
51- Invoke-WebRequest -Uri "https://aka.ms/download-jdk/microsoft-jdk-17 -windows-x64.zip" -OutFile "$env:AGENT_TEMPDIRECTORY\downloadjdk\microsoft-jdk-17 -windows-x64.zip"
51+ Invoke-WebRequest -Uri "https://aka.ms/download-jdk/microsoft-jdk-21 -windows-x64.zip" -OutFile "$env:AGENT_TEMPDIRECTORY\downloadjdk\microsoft-jdk-21 -windows-x64.zip"
5252 - task : JavaToolInstaller@0
53- displayName : Use Java 17
53+ displayName : Use Java 21
5454 inputs :
55- versionSpec : " 17 "
55+ versionSpec : " 21 "
5656 jdkArchitectureOption : x64
5757 jdkSourceOption : LocalDirectory
58- jdkFile : $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-17 -windows-x64.zip
59- jdkDestinationDirectory : $(Agent.ToolsDirectory)/ms-jdk17
58+ jdkFile : $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-21 -windows-x64.zip
59+ jdkDestinationDirectory : $(Agent.ToolsDirectory)/ms-jdk21
6060 - script : java --version
6161 displayName : ' Check Java installation'
6262 - task : Npm@1
You can’t perform that action at this time.
0 commit comments