Skip to content

Commit c06c1e2

Browse files
authored
Remove Java 11 (#5039)
* Update template-OneBranch-CI-libsandsamples.yaml * pack-sign * restore
1 parent 15c715e commit c06c1e2

File tree

3 files changed

+0
-38
lines changed

3 files changed

+0
-38
lines changed

build/template-OneBranch-CI-libsandsamples.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -66,30 +66,6 @@ steps:
6666
dotnet workload install maui --source "https://pkgs.dev.azure.com/IdentityDivision/_packaging/IDDP_PublicPackages/nuget/v3/index.json"
6767
dotnet workload install android --source "https://pkgs.dev.azure.com/IdentityDivision/_packaging/IDDP_PublicPackages/nuget/v3/index.json"
6868
69-
- ${{ if eq(parameters.Mode, 'build') }}:
70-
- task: PowerShell@2
71-
displayName: Install Chocolatey
72-
inputs:
73-
targetType: 'inline'
74-
script: |
75-
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
76-
77-
- ${{ if eq(parameters.Mode, 'build') }}:
78-
- task: PowerShell@2
79-
displayName: 'Install Java 11 for Build'
80-
inputs:
81-
targetType: 'inline'
82-
script: |
83-
choco install openjdk --version=11.0.2.01 -y
84-
85-
- ${{ if eq(parameters.Mode, 'test') }}:
86-
- task: JavaToolInstaller@0
87-
displayName: 'Use Java 11 for Test'
88-
inputs:
89-
versionSpec: 11
90-
jdkArchitectureOption: x64
91-
jdkSourceOption: PreInstalled
92-
9369
- task: CmdLine@2
9470
displayName: 'Clear local NuGet cache'
9571
inputs:

build/template-pack-and-sign-packages.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ steps:
2929
script: |
3030
dotnet nuget locals all --clear
3131
dotnet workload install android ios macos maui --source "https://pkgs.dev.azure.com/IdentityDivision/_packaging/IDDP_PublicPackages/nuget/v3/index.json"
32-
33-
- task: JavaToolInstaller@0
34-
displayName: 'Use Java 11'
35-
inputs:
36-
versionSpec: 11
37-
jdkArchitectureOption: x64
38-
jdkSourceOption: PreInstalled
3932
4033
- task: VSBuild@1
4134
displayName: 'NuGet restore'

build/template-restore-build-libsandsamples.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ steps:
3535
script: |
3636
dotnet workload install android ios macos maui --source https://api.nuget.org/v3/index.json
3737
38-
- task: JavaToolInstaller@0
39-
displayName: 'Use Java 11'
40-
inputs:
41-
versionSpec: 11
42-
jdkArchitectureOption: x64
43-
jdkSourceOption: PreInstalled
44-
4538
- task: VSBuild@1
4639
displayName: 'NuGet restore ${{ parameters.Solution }}'
4740
inputs:

0 commit comments

Comments
 (0)