Skip to content

Commit

Permalink
Fix Android CI build issues (#587)
Browse files Browse the repository at this point in the history
* Update JDK version to 17 in ci.yml

* Update com.diffplug.spotless to 6.22.0.

* Update to JDK 17 in packaging pipelines.

* Fix pool name.
  • Loading branch information
edgchen1 authored Oct 31, 2023
1 parent 6469620 commit 2aeca72
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .pipelines/android_packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
displayName: "Use Python 3.9"

- task: JavaToolInstaller@0
displayName: Use jdk 11
displayName: Use jdk 17
inputs:
versionSpec: "11"
versionSpec: "17"
jdkArchitectureOption: "x64"
jdkSourceOption: "PreInstalled"

Expand Down
8 changes: 4 additions & 4 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,9 @@ stages:
displayName: "Use Python 3.9"

- task: JavaToolInstaller@0
displayName: Use jdk 11
displayName: Use jdk 17
inputs:
versionSpec: '11'
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'

Expand Down Expand Up @@ -561,9 +561,9 @@ stages:
displayName: "Use Python 3.9"

- task: JavaToolInstaller@0
displayName: Use jdk 11
displayName: Use jdk 17
inputs:
versionSpec: '11'
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'

Expand Down
4 changes: 2 additions & 2 deletions .pipelines/templates/android-shared-lib-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
displayName: "Use Python 3.9"

- task: JavaToolInstaller@0
displayName: Use jdk 11
displayName: Use jdk 17
inputs:
versionSpec: "11"
versionSpec: "17"
jdkArchitectureOption: "x64"
jdkSourceOption: "PreInstalled"

Expand Down
4 changes: 2 additions & 2 deletions .pipelines/templates/build-package-for-android-aar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ stages:
architecture: "x64"
displayName: "Use Python 3.9"
- task: JavaToolInstaller@0
displayName: Use jdk 11
displayName: Use jdk 17
inputs:
versionSpec: "11"
versionSpec: "17"
jdkArchitectureOption: "x64"
jdkSourceOption: "PreInstalled"
- task: DownloadPipelineArtifact@2
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/build-package-for-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ stages:
- template: build-package-for-linux.yml
parameters:
OrtExtensionsArch: 'aarch64'
PoolName: 'aiinfra-linux-ARM64-CPU-2019'
PoolName: 'onnxruntime-linux-ARM64-CPU-2019'
IsReleaseBuild: ${{parameters.IsReleaseBuild}}
OrtExtensionsCFlags: ''
OrtExtensionsCXXFlags: ''
Expand Down
2 changes: 1 addition & 1 deletion java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
id 'signing'
id 'jacoco'
id 'com.diffplug.spotless' version '5.17.0'
id 'com.diffplug.spotless' version '6.22.0'
}

allprojects {
Expand Down

0 comments on commit 2aeca72

Please sign in to comment.