Skip to content

Conversation

@ditn
Copy link
Owner

@ditn ditn commented May 23, 2025

This commit includes the following changes:

  1. Updated Dependency Versions:

    • I updated most dependencies in gradle/libs.versions.toml to their latest stable versions. This includes Android Gradle Plugin, Hilt, Jetpack Compose (UI components), Kotlin (initially to 2.1.21), AndroidX libraries, and testing libraries.
    • I updated artifact names for javax.inject to jakarta.inject, and JUnit was updated from version 4 to 5 (Jupiter).
  2. Build Configuration Updates:

    • I updated the Gradle wrapper to 8.11.1.
    • I configured the project to use JDK 17.
    • I removed the MaxPermSize JVM argument from gradle.properties.
    • I updated buildSrc custom plugins and extensions (enableCompose.kt, ProjectConfigurationPlugin.kt, ProjectExtensions.kt) for compatibility with AGP 8.x APIs.
    • I configured JUnit 5 test execution for JVM and Android unit tests in app, feed/ui, and ui modules.
    • I updated Kotlin Multiplatform (KMP) build files (:ui, :feed/ui) to use androidTarget() and new test configurations.
  3. Code Modifications:

    • I updated javax.inject.Inject imports to jakarta.inject.Inject (e.g., in DataModuleClass.kt).
    • I updated JUnit 4 @Test annotations to JUnit 5's org.junit.jupiter.api.Test.

Work-in-Progress / Stuck Point:

The primary unresolved issue is a build failure related to the Jetpack Compose Compiler plugin (org.jetbrains.kotlin.plugin.compose) for the :app module. The versions in gradle/libs.versions.toml were:

  • kotlin = "2.1.21"
  • composeCompiler = "1.5.15"

This combination is incompatible, as Compose Compiler 1.5.15 officially supports Kotlin 2.0.0. My immediate next step planned was to downgrade the Kotlin version in gradle/libs.versions.toml to 2.0.0 to align with the composeCompiler version. I have not yet implemented or tested this change.

Further work would involve:

  • Executing the Kotlin downgrade to 2.0.0.
  • Ensuring the Compose Compiler plugin is correctly versioned and applied in settings.gradle.kts and app/build.gradle.kts.
  • Running a full build and addressing any subsequent compilation errors or test failures that arise from the version changes and Kotlin downgrade.

This commit includes the following changes:

1.  **Updated Dependency Versions:**
    *   I updated most dependencies in `gradle/libs.versions.toml` to their latest stable versions. This includes Android Gradle Plugin, Hilt, Jetpack Compose (UI components), Kotlin (initially to 2.1.21), AndroidX libraries, and testing libraries.
    *   I updated artifact names for `javax.inject` to `jakarta.inject`, and JUnit was updated from version 4 to 5 (Jupiter).

2.  **Build Configuration Updates:**
    *   I updated the Gradle wrapper to `8.11.1`.
    *   I configured the project to use JDK 17.
    *   I removed the `MaxPermSize` JVM argument from `gradle.properties`.
    *   I updated `buildSrc` custom plugins and extensions (`enableCompose.kt`, `ProjectConfigurationPlugin.kt`, `ProjectExtensions.kt`) for compatibility with AGP 8.x APIs.
    *   I configured JUnit 5 test execution for JVM and Android unit tests in `app`, `feed/ui`, and `ui` modules.
    *   I updated Kotlin Multiplatform (KMP) build files (`:ui`, `:feed/ui`) to use `androidTarget()` and new test configurations.

3.  **Code Modifications:**
    *   I updated `javax.inject.Inject` imports to `jakarta.inject.Inject` (e.g., in `DataModuleClass.kt`).
    *   I updated JUnit 4 `@Test` annotations to JUnit 5's `org.junit.jupiter.api.Test`.

**Work-in-Progress / Stuck Point:**

The primary unresolved issue is a build failure related to the Jetpack Compose Compiler plugin (`org.jetbrains.kotlin.plugin.compose`) for the `:app` module.
The versions in `gradle/libs.versions.toml` were:
*   `kotlin = "2.1.21"`
*   `composeCompiler = "1.5.15"`

This combination is incompatible, as Compose Compiler `1.5.15` officially supports Kotlin `2.0.0`. My immediate next step planned was to downgrade the Kotlin version in `gradle/libs.versions.toml` to `2.0.0` to align with the `composeCompiler` version. I have *not* yet implemented or tested this change.

Further work would involve:
*   Executing the Kotlin downgrade to `2.0.0`.
*   Ensuring the Compose Compiler plugin is correctly versioned and applied in `settings.gradle.kts` and `app/build.gradle.kts`.
*   Running a full build and addressing any subsequent compilation errors or test failures that arise from the version changes and Kotlin downgrade.
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.

2 participants