Migrate Android library to AGP 9.0 with version catalog#136
Open
AYastrebov wants to merge 1 commit into
Open
Conversation
- Upgrade AGP from 8.3.2 to 9.0.1 - Remove kotlin-android plugin (AGP 9.0 has built-in Kotlin support) - Remove kotlinOptions block (jvmTarget inherited from compileOptions) - Add gradle/libs.versions.toml version catalog to avoid hardcoded plugin versions in build.gradle.kts - Bump compileSdk from 34 to 35 (required by AGP 9.0) - Bump CI Gradle from 8.6 to 9.5.0 (AGP 9.0 requires Gradle 9.1+) - Remove obsolete gradle.properties (enableJetifier, kotlin.code.style) Verified: assembleRelease builds successfully with Gradle 9.4 + AGP 9.0.1. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Modernize the Android library build: upgrade to AGP 9.0 and add a Gradle version catalog so plugin versions are no longer hardcoded in
build.gradle.kts.Changes
libs.versions.toml)kotlin-android1.9.22kotlinOptionsjvmTarget = "17"compileOptions.targetCompatibilitycompileSdkbuild.gradle.ktsgradle/libs.versions.tomlcatalogRemoved from
gradle.propertiesandroid.enableJetifier=false— Jetifier was removed in AGP 9.0kotlin.code.style=official— no longer relevant with built-in KotlinVerification
assembleReleasebuilds successfully with Gradle 9.4 + AGP 9.0.1Test plan
Build Android AARjob passes🤖 Generated with Claude Code