Skip to content

Commit 5f56cb0

Browse files
feat(cli): Upgrade gradle to 8.9 and gradle-android to 8.5.1 (#10507)
* feat(cli): Upgrade gradle to 8.9 and gradle-android to 8.5.1 * Update .changes/android-gradle-8-9.md --------- Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
1 parent 00e5a6a commit 5f56cb0

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.changes/android-gradle-8-9.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-cli': 'patch:enhance'
3+
'@tauri-apps/cli': 'patch:enhance'
4+
---
5+
6+
Update gradle to 8.9 and the gradle android plugin to 8.5.1 in the android templates (requires latest Android Studio). This should add support for Java 21 but Java 17 keeps being the recommended version.

tooling/cli/templates/mobile/android/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ buildscript {
44
mavenCentral()
55
}
66
dependencies {
7-
classpath("com.android.tools.build:gradle:8.3.2")
8-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21")
7+
classpath("com.android.tools.build:gradle:8.5.1")
8+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25")
99
{{~#each android-project-dependencies}}
1010
classpath("{{this}}"){{/each}}
1111
}

tooling/cli/templates/mobile/android/buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ repositories {
1818

1919
dependencies {
2020
compileOnly(gradleApi())
21-
implementation("com.android.tools.build:gradle:8.3.2")
21+
implementation("com.android.tools.build:gradle:8.5.1")
2222
}
2323

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue May 10 19:22:52 CST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)