Skip to content

Decide and test the supported Gradle range (thisisthepy consumers build on Gradle 8.13) #78

Backlog

Description

@b-re-w

Why. Gemstone (LogitAI/Gemstone), a thisisthepy consumer, builds with this plugin (1.11.1-ext.3) on Gradle 8.13. The plugin never states which Gradle versions it supports, and it isn't tested on 8.x.

What exists today.

  • gradle-plugins/gradle.properties tests compose.tests.gradle.versions=9.3.1, 9.5.0 with AGP 9.1.1 and 9.2.0.
  • extended-plugin-integration.yml runs Gradle 9.5.0 with AGP 9.2.0 only, on push to extended and on demand.
  • The plugin's own code has no Gradle floor except Compose resources publication, which needs 7.6 or later (ComposeResources.kt).
  • The plugin's build itself uses Gradle 9.5.0.

What fails, and why. These are local runs (macOS arm64) of GradlePluginTest, on Gradle 8.13 and on 9.3.1:

Gradle Failed Of
9.3.1 8 10
8.13 9 10

The only test that fails on 8.13 alone is testOldComposePluginError. The other failures are the same on both versions and have nothing to do with Gradle 8:

  1. The published fork Compose doesn't resolve. Test projects using org.thisisthepy.compose.*:1.11.1-ext.2 fail with:
    No matching variant of org.jetbrains.kotlinx:kotlinx-browser:0.5.0 ... (JVM runtime)
    
    That comes from ui-tooling through ui, on the JVM. They also fail with No matching variant of androidx.compose.ui:ui:1.11.2 for JS.
  2. Kotlin/JS internal compiler error in compileKotlinJs.
  3. 8.13 only: the AGP pairing. com.android.kotlin.multiplatform.library 9.1.1 refuses with "Minimum supported Gradle version is 9.3.1". So an 8.x cell needs an AGP 8.x.

A wider unfiltered 8.13 run (with the AGP 9.1.1 pairing) failed 79 integration tests. Per the table above, most of those come from causes 1 and 2, not from 8.13. extended-plugin-integration.yml has also been red on extended since at least 10-24 (runs 40060100300 to 40153822674).

What does work on 8.13: the native-image tasks are configuration-cache clean on 8.13 and on 9.3.1 with #76.

Recommendation for 1.0. Support Gradle 8.13 and later, because thisisthepy's own consumer is on 8.13. Concretely:

  1. Fix the baseline first: make the integration suite green on 9.5.0. That means the published-artifact metadata (kotlinx-browser on JVM, androidx.compose.ui:ui for JS) and the JS compile error. Without that, no Gradle cell tells us anything.
  2. Add an 8.13 cell, paired with an AGP 8.x that supports Gradle 8.13, to compose.tests.gradle.versions and to extended-plugin-integration.yml.
  3. State the range (Gradle 8.13 and later, with the AGP pairing) in the README, and fail early below it with a clear message.

Dropping 8.x would mean Gemstone and any other 8.x consumer has to upgrade to Gradle 9.3 or later before taking 1.0. That is the owner's decision.

Done when. The supported range is written down. The integration workflow is green on both ends of that range. Below the range the plugin fails with a message that names the range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions