Dependency updates and migration to AGP 9.1 / Gradle 9.4#13
Open
h-ideura wants to merge 1 commit into
Open
Conversation
h-ideura
commented
Apr 13, 2026
Comment on lines
+2
to
+14
| kotlin = "2.3.20" | ||
| coroutines = "1.10.2" | ||
| essenty = "2.5.0" | ||
| androidxTest = "1.7.0" | ||
| androidxJunit = "1.3.0" | ||
| turbine = "1.2.1" | ||
| kotest = "6.1.11" | ||
| kover = "0.9.8" | ||
| kermit = "2.1.0" | ||
| ktLint = "14.2.0" | ||
| dokka = "2.2.0" | ||
| # Android | ||
| android-gradle = "8.5.2" | ||
| android-gradle = "9.1.0" |
| jvmTarget = Config.javaVersion.toString() | ||
| freeCompilerArgs = listOf( | ||
| tasks.withType<KotlinCompile>().configureEach { | ||
| compilerOptions { |
Collaborator
Author
There was a problem hiding this comment.
kotlinOptionsはdeprecatedになりました
| <project version="4"> | ||
| <component name="CompilerConfiguration"> | ||
| <bytecodeTargetLevel target="17" /> | ||
| <bytecodeTargetLevel target="21" /> |
Collaborator
Author
There was a problem hiding this comment.
Kotlinのバージョンアップに伴いJavaバージョンもあげ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Updated project-wide dependencies to their latest versions and upgraded to Android Gradle Plugin (AGP) 9.1.0 and Gradle 9.4.1. This migration includes resolving compatibility issues with the latest build environments and preparing for the future Kotlin Multiplatform (KMP) recommended configurations.
Changes
1. Library and Tooling Updates
Upgraded major toolchains and libraries to their latest stable (including early adopter) versions.
2. AGP 9.0 Compatibility (gradle.properties)
Starting with AGP 9.0, the combination of the traditional
com.android.libraryandkotlin-multiplatformplugins is restricted. The following flags have been introduced to maintain the build:android.builtInKotlin=falseandroid.newDsl=falseNote: This is a temporary workaround. A long-term migration to the new KMP-specific Android plugin is planned.
Implementation Intent and Background
Why upgrade to Gradle 9 / AGP 9?
To leverage the new features of Kotlin 2.3 and AGP 9 (such as build performance improvements and new DSLs) and to ensure the project remains maintainable with modern standards.
Handling Platform-Specific DSLs (buildTypes, testOptions, packagingOptions)
The following design principles have been applied during this update:
buildTypes(debug/release setups) orpackagingOptions(duplicate file exclusion during APK generation) should be centralized in the final application (App module) side.com.android.kotlin.multiplatform.library) will not support many of these Android-specific DSLs. By removing or reducing reliance on them now, we aim for a simpler and more standard module structure.Verification
./gradlew assembleruns without errors../gradlew helpand module builds pass without errors.