Skip to content

Update to AGP 9#179

Open
RudolfHladik wants to merge 2 commits intofeature/6.x-context-paramsfrom
feature/6.x-agp-9
Open

Update to AGP 9#179
RudolfHladik wants to merge 2 commits intofeature/6.x-context-paramsfrom
feature/6.x-agp-9

Conversation

@RudolfHladik
Copy link
Copy Markdown
Contributor

No description provided.

const val lifeCycle = "2.8.7"

const val hilt = "2.58"
const val dagger = "2.59.2"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is dagger needed if we already have Hilt?

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s Android build toolchain to support Android Gradle Plugin (AGP) 9 by upgrading Gradle/Kotlin-related versions and adjusting Android/KMP Gradle plugin usage across modules.

Changes:

  • Bump Gradle Wrapper to 9.4.0 and AGP to 9.1.0 (plus related dependency/version updates in buildSrc).
  • Migrate KMP Android library modules to the new com.android.kotlin.multiplatform.library plugin and updated kotlin { android { ... } } DSL.
  • Update dependency-updates task implementation for newer Gradle APIs.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
gradle/wrapper/gradle-wrapper.properties Updates Gradle Wrapper distribution to Gradle 9.4.0.
example/build.gradle.kts Removes kotlin-android from the app module plugins.
decompose/build.gradle.kts Switches to com.android.kotlin.multiplatform.library and moves Android config into kotlin { android { ... } }.
cr-usecases/build.gradle.kts Switches to com.android.kotlin.multiplatform.library and moves Android config into kotlin { android { ... } }.
cr-usecases-test/build.gradle.kts Removes kotlin-android from an Android library module.
core/build.gradle.kts Removes kotlin-android from an Android library module.
core-test/build.gradle.kts Removes kotlin-android from an Android library module.
compose/build.gradle.kts Removes kotlin-android from an Android library module.
buildSrc/src/main/kotlin/Versions.kt Updates AGP/Kotlin/deps versions and adjusts DI + Compose BOM version pins.
buildSrc/src/main/kotlin/app/futured/arkitekt/DependencyUpdates.kt Updates dependency-updates rejection logic to newer component selection API usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread example/build.gradle.kts
@@ -1,7 +1,6 @@

plugins {
id("com.android.application")
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kotlin { ... } configuration is used in this module, but the Kotlin Android plugin was removed from the plugins block. Without applying org.jetbrains.kotlin.android (or the legacy kotlin-android), Kotlin sources and the kotlin {} extension will not be available, so the build should fail. Please add the Kotlin Android plugin back for this Android application module.

Suggested change
id("com.android.application")
id("com.android.application")
id("org.jetbrains.kotlin.android")

Copilot uses AI. Check for mistakes.
Comment thread core/build.gradle.kts
@@ -2,7 +2,6 @@ import com.vanniktech.maven.publish.AndroidSingleVariantLibrary

plugins {
id("com.android.library")
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Kotlin Android plugin was removed from this Android library module, but the module still contains Kotlin sources (e.g., *.kt under src/main/java) and uses the kotlin { compilerOptions { ... } } DSL. Please apply org.jetbrains.kotlin.android (or restore kotlin-android) so Kotlin compilation and the kotlin {} extension work.

Suggested change
id("com.android.library")
id("com.android.library")
id("org.jetbrains.kotlin.android")

Copilot uses AI. Check for mistakes.
Comment thread compose/build.gradle.kts
@@ -2,7 +2,6 @@ import com.vanniktech.maven.publish.AndroidSingleVariantLibrary

plugins {
id("com.android.library")
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Kotlin Android plugin was removed from this Android library module, but the build script still configures kotlin { compilerOptions { ... } } and the module contains Kotlin sources. Please apply org.jetbrains.kotlin.android (or restore kotlin-android) in the plugins block to avoid build failures.

Suggested change
id("com.android.library")
id("com.android.library")
id("org.jetbrains.kotlin.android")

Copilot uses AI. Check for mistakes.
@@ -2,7 +2,6 @@ import com.vanniktech.maven.publish.AndroidSingleVariantLibrary

plugins {
id("com.android.library")
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Kotlin Android plugin was removed from this Android test-utilities library, but the module contains Kotlin sources and configures kotlin { compilerOptions { ... } }. Please apply org.jetbrains.kotlin.android (or restore kotlin-android) in the plugins block so Kotlin compilation works.

Suggested change
id("com.android.library")
id("com.android.library")
id("org.jetbrains.kotlin.android")

Copilot uses AI. Check for mistakes.
@@ -2,7 +2,6 @@ import com.vanniktech.maven.publish.AndroidSingleVariantLibrary

plugins {
id("com.android.library")
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Kotlin Android plugin was removed from this Android test-utilities library, but the script still configures kotlin { compilerOptions { ... } } and the module contains Kotlin sources. Please apply org.jetbrains.kotlin.android (or restore kotlin-android) in the plugins block.

Suggested change
id("com.android.library")
id("com.android.library")
id("org.jetbrains.kotlin.android")

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants