Skip to content
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

Open
wants to merge 55 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
50981a1
Update gradle version to 8.10.2
jchen351 Sep 24, 2024
54cce11
update setting.gradle
jchen351 Sep 24, 2024
a7b1370
Update gradle-wrapper.properties in java project.
jchen351 Sep 24, 2024
2d09024
com.android.tools.build:gradle:8.6.0
jchen351 Sep 24, 2024
70308f4
com.android.tools.build:gradle:8.6.1
jchen351 Sep 24, 2024
82ab4ee
com.android.tools.build:gradle:8.6.1
jchen351 Sep 24, 2024
876eb4a
com.android.tools.build:gradle:8.6.1
jchen351 Sep 24, 2024
9b60ae7
com.android.tools.build:gradle:8.6.1
jchen351 Sep 24, 2024
aa613aa
com.android.tools.build:gradle:8.6.1
jchen351 Sep 25, 2024
c5baa3b
Use JDK 17 for andriod-java-api-aar.yml
jchen351 Sep 25, 2024
963f379
Use JDK 17 for android-binary-size-check-stage.yml
jchen351 Sep 25, 2024
0f7003b
downgrade com.android.tools.build:gradle:8.6.1 to 7.4.2
jchen351 Sep 25, 2024
53dc498
Rolling back android/src/main/AndroidManifest.xml
jchen351 Sep 25, 2024
ccc3028
npm run format
jchen351 Sep 25, 2024
8fbf193
Rolling back packages
jchen351 Sep 25, 2024
ab98a79
Undo changes on tools/ci_build/github/azure-pipelines/templates/andro…
jchen351 Sep 30, 2024
b1c2f9c
Merge branch 'main' into Cjian/gradle
jchen351 Sep 30, 2024
7da268d
Merge branch 'main' into Cjian/gradle
jchen351 Oct 1, 2024
485de16
Increase -Xmx6144M
jchen351 Oct 1, 2024
feff4ca
Increase -Xmx6144M
jchen351 Oct 2, 2024
9a7d008
Increase -Xmx6144M
jchen351 Oct 2, 2024
44ca723
update minSdkVersion to 29 and sdk version to 34
jchen351 Oct 2, 2024
6d6fda5
Update kotlinVersion
jchen351 Oct 2, 2024
0edd95f
ADD registerReceiver Override method
jchen351 Oct 2, 2024
228c0b3
targetSdkVersion to 33
jchen351 Oct 2, 2024
2b2cfc8
android-31
jchen351 Oct 2, 2024
f1de779
buildToolsVersion to 34
jchen351 Oct 2, 2024
e3bb6b8
Merge branch 'main' into Cjian/gradle
jchen351 Oct 3, 2024
7412aeb
Merge with the master
jchen351 Oct 3, 2024
6c2e71d
android_api=33
jchen351 Oct 3, 2024
33ee3ee
Update uses-permission and core-ktx version
jchen351 Oct 3, 2024
8f02cbb
Force kotlin version to 1.8.10
jchen351 Oct 3, 2024
1a6e6ab
revert tools/ci_build/github/azure-pipelines/templates/android-binary…
jchen351 Oct 4, 2024
856ac62
Swtiching min sdk back to 24
jchen351 Oct 4, 2024
52a52b2
"android_min_sdk_version": 24,
jchen351 Oct 4, 2024
22c0a9a
DEFAULT_ANDROID_MIN_SDK_VER = 24
jchen351 Oct 4, 2024
870b48b
Update version to use VERSION NUMBER
jchen351 Oct 7, 2024
84271dc
comment out
jchen351 Oct 8, 2024
d5c5829
Adding rootProject.file('../../../../VERSION_NUMBER').text.trim()
jchen351 Oct 10, 2024
a50f645
Merge branch 'main' into Cjian/gradle
jchen351 Oct 14, 2024
25be09e
Add debug info into Build React Native Detox Android e2e Tests
jchen351 Oct 14, 2024
797bdc6
Update FLIPPER_VERSION=0.99.0
jchen351 Oct 14, 2024
c9ee66e
implementation "com.microsoft.onnxruntime:onnxruntime-android:lates…
jchen351 Oct 14, 2024
4349764
Update kotlin version ro 1.8.10
jchen351 Oct 14, 2024
cbb0f79
Update kotlin version ro 1.8.10
jchen351 Oct 15, 2024
0280f7e
accessExternalSchema issue
jchen351 Oct 15, 2024
3cd92d1
accessExternalSchema issue
jchen351 Oct 15, 2024
3387f33
apply plugin: 'com.android.library'
jchen351 Oct 15, 2024
e540496
apply plugin: 'com.android.library'
jchen351 Oct 15, 2024
93fc5ef
Update Android SDK version to 34 in gradle.properties.
jchen351 Nov 15, 2024
2aa8e0b
Merge remote-tracking branch 'origin/main' into Cjian/gradle
jchen351 Nov 15, 2024
f32cc6f
Merge branch 'Cjian/jdk17-js' into Cjian/gradle
jchen351 Nov 15, 2024
dba1505
Update Android system image version from 33 to 34.
jchen351 Nov 15, 2024
0239015
Update JVM arguments in gradle.properties for React Native Android pr…
jchen351 Nov 15, 2024
02ad09f
Merge branch 'Cjian/jdk17-js' into Cjian/gradle
jchen351 Nov 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified java/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions java/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=9631d53cf3e74bfa726893aee1f8994fee4e060c401335946dba2156f440f24c
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionSha256Sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
7 changes: 5 additions & 2 deletions java/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -55,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
22 changes: 12 additions & 10 deletions java/gradlew.bat
Copy link
Contributor Author

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

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down Expand Up @@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand All @@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand Down
2 changes: 1 addition & 1 deletion js/react_native/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'com.android.tools.build:gradle:7.2.2'
// noinspection DifferentKotlinGradleVersion
}
}
Expand Down
2 changes: 1 addition & 1 deletion js/react_native/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

@jchen351 jchen351 Sep 30, 2024

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

OnnxruntimeModule_compileSdkVersion=31
OnnxruntimeModule_minSdkVersion=21
OnnxruntimeModule_targetSdkVersion=31
Binary file modified js/react_native/android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=7faa7198769f872826c8ef4f1450f839ec27f0b4d5d1e51bade63667cbccd205
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
distributionSha256Sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading