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:
44
44
- checkout : self
45
45
fetchTags : false
46
46
- task : JavaToolInstaller@0
47
- displayName : Use Java 17
47
+ displayName : Use Java 21
48
48
inputs :
49
- versionSpec : " 17 "
49
+ versionSpec : " 21 "
50
50
jdkArchitectureOption : x64
51
51
jdkSourceOption : PreInstalled
52
52
- task : NodeTool@0
Original file line number Diff line number Diff line change @@ -48,20 +48,20 @@ extends:
48
48
versionSpec : 20.x
49
49
# The image does not have jdk preinstalled, we need to download it first.
50
50
- task : PowerShell@2
51
- displayName : Download JDK 17
51
+ displayName : Download JDK 21
52
52
inputs :
53
53
targetType : ' inline'
54
54
script : |-
55
55
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"
57
57
- task : JavaToolInstaller@0
58
- displayName : Use Java 17
58
+ displayName : Use Java 21
59
59
inputs :
60
- versionSpec : " 17 "
60
+ versionSpec : " 21 "
61
61
jdkArchitectureOption : x64
62
62
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
65
65
- script : java --version
66
66
displayName : ' Check Java installation'
67
67
- task : Npm@1
Original file line number Diff line number Diff line change @@ -43,20 +43,20 @@ extends:
43
43
versionSpec : 20.x
44
44
# The image does not have jdk preinstalled, we need to download it first.
45
45
- task : PowerShell@2
46
- displayName : Download JDK 17
46
+ displayName : Download JDK 21
47
47
inputs :
48
48
targetType : ' inline'
49
49
script : |-
50
50
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"
52
52
- task : JavaToolInstaller@0
53
- displayName : Use Java 17
53
+ displayName : Use Java 21
54
54
inputs :
55
- versionSpec : " 17 "
55
+ versionSpec : " 21 "
56
56
jdkArchitectureOption : x64
57
57
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
60
60
- script : java --version
61
61
displayName : ' Check Java installation'
62
62
- task : Npm@1
You can’t perform that action at this time.
0 commit comments