Status Update
Comments
au...@google.com <au...@google.com> #2
Can you share how exactly are you resolving the dependency tree? Normally, Gradle always uses .module metadata, so it is not clear to me how you are hitting these issues in pom files.
au...@google.com <au...@google.com> #3
I do see that between 1.5.0-alpha06
and 1.5.0-beta01
we regressed and moved from:
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>1.9.24</version>
<scope>compile</scope>
</dependency>
to
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<scope>compile</scope>
<version>unspecified</version>
</dependency>
ky...@gmail.com <ky...@gmail.com> #4
au...@google.com <au...@google.com> #5
For Googlers, 1.5.0-alpha06
was from ab/12619857 (2024-11-06) and 1.5.0-beta01
was from ab/12750671 (2024-12-04).
I bisected this down by looking at our builds androidx_snapshot repository and found
12750671 broken
12748222 broken
12695124 broken
12693463 broken
12692676 broken
12691948 broken
12691696 working
12690853 working
12689465 working
12686901 working
12684352 working
12675082 working
12660485 working
12619857 working
That means we regressed with
where we upgraded KGP from 2.0.10
to 2.1.0-RC
If I look at the latest build the pom is back to spec
<dependencyManagement>
<dependencies>
<dependency>
<groupId>androidx.collection</groupId>
<artifactId>collection-ktx</artifactId>
<version>1.5.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>1.9.24</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>androidx.annotation</groupId>
<artifactId>annotation-linuxx64</artifactId>
<version>1.9.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
It got fixed
So we need to re-release collection library from androidx-main that has the newer KGP.
au...@google.com <au...@google.com> #6
I'll bump the version of collection to 1.5.0-rc01 (
ky...@gmail.com <ky...@gmail.com> #7
au...@google.com <au...@google.com> #8
Thanks for the report. One thing to note, depending how custom is your pom downloader, you will need to make sure you support entries without any version, as it gets resolved through the <dependencyManagement>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<scope>compile</scope>
</dependency>
au...@google.com <au...@google.com> #9
The plan for this is to release collection 1.5.0 (stable) on March 12, then make sure that compose 1.8.0-RC* moves to using that version.
au...@google.com <au...@google.com> #10
Over to juanrdz@ to make sure Compose 1.8.0-* ship with the fixed collection dependency.
Description
Jetpack Compose component used: -
Android Studio Build: -
Kotlin version: -
Hi team,
I'm trying to bump to compose library 1.8.0-beta02, when I resolve the dependency tree, it seems the POM is broken, but the Gradle Module Metadata equivalent is still in good shape.
Can someone please check this page to see why the GMM is fine but the POM is broken with a version called "unspecified"?
Thanks