Skip to content

Commit

Permalink
Remove Java 11 (#5039)
Browse files Browse the repository at this point in the history
* Update template-OneBranch-CI-libsandsamples.yaml

* pack-sign

* restore
  • Loading branch information
gladjohn authored Jan 1, 2025
1 parent 15c715e commit c06c1e2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 38 deletions.
24 changes: 0 additions & 24 deletions build/template-OneBranch-CI-libsandsamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,6 @@ steps:
dotnet workload install maui --source "https://pkgs.dev.azure.com/IdentityDivision/_packaging/IDDP_PublicPackages/nuget/v3/index.json"
dotnet workload install android --source "https://pkgs.dev.azure.com/IdentityDivision/_packaging/IDDP_PublicPackages/nuget/v3/index.json"
- ${{ if eq(parameters.Mode, 'build') }}:
- task: PowerShell@2
displayName: Install Chocolatey
inputs:
targetType: 'inline'
script: |
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'))
- ${{ if eq(parameters.Mode, 'build') }}:
- task: PowerShell@2
displayName: 'Install Java 11 for Build'
inputs:
targetType: 'inline'
script: |
choco install openjdk --version=11.0.2.01 -y
- ${{ if eq(parameters.Mode, 'test') }}:
- task: JavaToolInstaller@0
displayName: 'Use Java 11 for Test'
inputs:
versionSpec: 11
jdkArchitectureOption: x64
jdkSourceOption: PreInstalled

- task: CmdLine@2
displayName: 'Clear local NuGet cache'
inputs:
Expand Down
7 changes: 0 additions & 7 deletions build/template-pack-and-sign-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ steps:
script: |
dotnet nuget locals all --clear
dotnet workload install android ios macos maui --source "https://pkgs.dev.azure.com/IdentityDivision/_packaging/IDDP_PublicPackages/nuget/v3/index.json"
- task: JavaToolInstaller@0
displayName: 'Use Java 11'
inputs:
versionSpec: 11
jdkArchitectureOption: x64
jdkSourceOption: PreInstalled
- task: VSBuild@1
displayName: 'NuGet restore'
Expand Down
7 changes: 0 additions & 7 deletions build/template-restore-build-libsandsamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ steps:
script: |
dotnet workload install android ios macos maui --source https://api.nuget.org/v3/index.json
- task: JavaToolInstaller@0
displayName: 'Use Java 11'
inputs:
versionSpec: 11
jdkArchitectureOption: x64
jdkSourceOption: PreInstalled

- task: VSBuild@1
displayName: 'NuGet restore ${{ parameters.Solution }}'
inputs:
Expand Down

0 comments on commit c06c1e2

Please sign in to comment.