Skip to content

Conversation

@igordmn
Copy link
Collaborator

@igordmn igordmn commented Jan 30, 2026

Fixes https://youtrack.jetbrains.com/issue/CMP-9523/Copy-new-buildSrc-to-jb-main

Other PRs:
JetBrains/compose-multiplatform-core#2709
https://jetbrains.team/p/ui/reviews/101/timeline

This test fails after JetBrains/compose-multiplatform-core#2709 because of new constraints in ui-uikit

// ./gradlew dependencyInsight --configuration iosArm64CompileKlibraries --dependency org.jetbrains.compose.ui:ui
org.jetbrains.compose.ui:ui:1.9.3 FAILED
   Failures:
      - Could not resolve org.jetbrains.compose.ui:ui:{strictly 1.9.3}.
          - Cannot find a version of 'org.jetbrains.compose.ui:ui' that satisfies the version constraints:
          Dependency path: 'root project :' (iosArm64CompileKlibraries) --> 'org.jetbrains.compose.ui:ui:{strictly 1.9.3}'
          ...
          Constraint path: ... 'org.jetbrains.compose.foundation:foundation:9999.0.0-SNAPSHOT' ... --> 'org.jetbrains.compose.ui:ui-uikit:9999.0.0-SNAPSHOT' ... --> 'org.jetbrains.compose.ui:ui:9999.0.0-SNAPSHOT'
          ...

(it theoretically should be not resolved with any explicit dependency of "foundation" on "ui-something", but I couldn't reproduce it, might be a bug/peculiarity of Gradle)

Instead of downgrading a middle-level dependency, we downgrade high-level dependencies. We downgrade both ui/foundation because we will add a constraint for them in CMP-9710 Prevent possible version mismatch between ui and foundation

Release Notes

N/A

@igordmn igordmn marked this pull request as ready for review January 30, 2026 06:41
@igordmn
Copy link
Collaborator Author

igordmn commented Jan 30, 2026

Should be merged with JetBrains/compose-multiplatform-core#2709

@igordmn igordmn requested a review from terrakok January 30, 2026 06:41
@MatkovIvan MatkovIvan self-requested a review January 30, 2026 10:46
Copy link
Member

@MatkovIvan MatkovIvan left a comment

Choose a reason for hiding this comment

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

That constraint doesn't solve runtime libraries (foundation/ui) <-> plugin mismatch

@igordmn igordmn force-pushed the igor.demin/restore-buildSrc-in-jbmain branch from 2fbc674 to 9a09f96 Compare January 30, 2026 15:49
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