-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update gradle version to 8.7 #22206
base: main
Are you sure you want to change the base?
Update gradle version to 8.7 #22206
Conversation
java/gradlew.bat
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes from this file is generated by ./gradlew wrapper --gradle-version=8.10.2 --distribution-type=bin
All changes from Changes from |
@@ -13,7 +13,7 @@ | |||
#Tue Jan 26 17:36:02 PST 2021 | |||
android.enableJetifier=true | |||
android.useAndroidX=true | |||
OnnxruntimeModule_buildToolsVersion=29.0.2 | |||
OnnxruntimeModule_buildToolsVersion=30.0.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should we specify the 34+ build tools here if it's going to be forced to that anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this MR, I am only updating the 'com.android.tools.build:gradle:7.4.2' insead of the 'com.android.tools.build:gradle:8.5'. So, the required build tool version is only 30.0.3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a separated PR when the com.android.tools.build:gradle is 8.5+ the required version of Android SDK Build Tools then become 34.0.0
tools/ci_build/github/azure-pipelines/templates/android-java-api-aar.yml
Outdated
Show resolved
Hide resolved
DEFAULT_ANDROID_TARGET_SDK_VER = 33
// implementation "com.microsoft.onnxruntime:onnxruntime-android:latest.integration@aar"
….integration@aar" revert back to
…#22771) ### Description This change is to update the Gradle version within java project to 8.7, it also upgrades the JAVA to 17. Gradle version from react-native was also updated to 7.5 to make it compatible with changes from the Java directory. However, the target java version remains the same. Java version from these will be upgraded in a separated PR. This is spited from #22206 ### Motivation and Context This is the first step to upgrade the react native version.
# Conflicts: # java/build-android.gradle # java/src/test/android/app/build.gradle # java/src/test/android/app/src/main/AndroidManifest.xml # js/react_native/android/gradle.properties # js/react_native/android/gradle/wrapper/gradle-wrapper.jar # js/react_native/android/gradle/wrapper/gradle-wrapper.properties # js/react_native/android/gradlew # js/react_native/android/gradlew.bat # tools/ci_build/github/android/build_aar_package.py # tools/ci_build/github/android/default_full_aar_build_settings.json
# Conflicts: # js/react_native/android/gradle.properties # js/react_native/e2e/android/build.gradle # js/react_native/e2e/android/gradle/wrapper/gradle-wrapper.properties # tools/ci_build/github/android/training_full_aar_build_settings.json # tools/ci_build/github/js/react_native_e2e_full_aar_build_settings.json
# Conflicts: # js/react_native/e2e/android/gradle.properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
"-no-audio", | ||
"-no-bt", # No Bluetooth | ||
"-no-boot-anim", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"-no-audio", | |
"-no-bt", # No Bluetooth | |
"-no-boot-anim", | |
"-no-audio", | |
"-no-bt", # No Bluetooth | |
"-no-boot-anim", |
…microsoft#22771) ### Description This change is to update the Gradle version within java project to 8.7, it also upgrades the JAVA to 17. Gradle version from react-native was also updated to 7.5 to make it compatible with changes from the Java directory. However, the target java version remains the same. Java version from these will be upgraded in a separated PR. This is spited from microsoft#22206 ### Motivation and Context This is the first step to upgrade the react native version.
…#22771) ### Description This change is to update the Gradle version within java project to 8.7, it also upgrades the JAVA to 17. Gradle version from react-native was also updated to 7.5 to make it compatible with changes from the Java directory. However, the target java version remains the same. Java version from these will be upgraded in a separated PR. This is spited from #22206 ### Motivation and Context This is the first step to upgrade the react native version.
…microsoft#22771) ### Description This change is to update the Gradle version within java project to 8.7, it also upgrades the JAVA to 17. Gradle version from react-native was also updated to 7.5 to make it compatible with changes from the Java directory. However, the target java version remains the same. Java version from these will be upgraded in a separated PR. This is spited from microsoft#22206 ### Motivation and Context This is the first step to upgrade the react native version.
…microsoft#22771) ### Description This change is to update the Gradle version within java project to 8.7, it also upgrades the JAVA to 17. Gradle version from react-native was also updated to 7.5 to make it compatible with changes from the Java directory. However, the target java version remains the same. Java version from these will be upgraded in a separated PR. This is spited from microsoft#22206 ### Motivation and Context This is the first step to upgrade the react native version.
…microsoft#22771) ### Description This change is to update the Gradle version within java project to 8.7, it also upgrades the JAVA to 17. Gradle version from react-native was also updated to 7.5 to make it compatible with changes from the Java directory. However, the target java version remains the same. Java version from these will be upgraded in a separated PR. This is spited from microsoft#22206 ### Motivation and Context This is the first step to upgrade the react native version.
Description
Update the gradle version from andriod projects to 8.7
And Android gradle build tool to version 7.4.2 across all of the ORT project.
Motivation and Context
Current versions of gradle are inconsistent and outdated to support newer version of plugins such as react-native.
Inconsistent versioning makes upgrading a lot more challenging.
Current issue
child-process:SPAWN_STDOUT INSTRUMENTATION_RESULT: shortMsg=Process crashed.
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
latest.integration
does work on "com.microsoft.onnxruntime:onnxruntime-android:latest.integration@aar" anymoreAB#50089