Skip to content

Fix compose 1.10.2 build failure: add JetBrains Space dev repo to allprojects repositories#490

Merged
alorma merged 2 commits intodependabot/gradle/compose-1.10.2from
copilot/fix-build-issue-pr-487
Mar 10, 2026
Merged

Fix compose 1.10.2 build failure: add JetBrains Space dev repo to allprojects repositories#490
alorma merged 2 commits intodependabot/gradle/compose-1.10.2from
copilot/fix-build-issue-pr-487

Conversation

Copy link
Contributor

Copilot AI commented Mar 10, 2026

Description

PR #487 (Dependabot bump of Compose 1.10.1 → 1.10.2) fails CI with Cannot determine the version of Skiko for Compose '1.10.2'. The Compose Gradle plugin resolves the Skiko version by creating a detached configuration for org.jetbrains.compose.ui:ui-graphics:<version> and inspecting its transitive deps — but this only works if the artifact is resolvable from project-level repositories.

Root cause: Gradle's default PREFER_PROJECT mode causes allprojects { repositories { ... } } in build.gradle.kts to silently override dependencyResolutionManagement.repositories in settings.gradle.kts. The JetBrains Space dev repo was only in settings — meaning it was never actually used for dependency resolution. Compose 1.10.2 was freshly published (one day before CI ran) and not yet propagated to Maven Central, so the detached configuration couldn't find ui-graphics:1.10.2.

Related Issue

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Build/CI improvement

Changes Made

  • Added maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") to allprojects { repositories } in build.gradle.kts, making it consistent with the already-correct dependencyResolutionManagement.repositories in settings.gradle.kts
 allprojects {
   repositories {
     google()
     mavenCentral()
+    maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
   }
 }

Platforms Tested

  • Android
  • iOS
  • Desktop (JVM)
  • JavaScript
  • WebAssembly

Screenshots / Videos

Before After

Testing

Manual Testing

  • Tested on physical device/emulator
  • Tested different screen sizes
  • Tested light and dark themes (if applicable)
  • Tested enabled/disabled states (if applicable)

Automated Testing

  • Added/updated unit tests
  • Added/updated integration tests
  • All existing tests pass

Checklist

  • My code follows the project's code style guidelines
  • I have performed a self-review of my code
  • I have commented my code where necessary, particularly in complex areas
  • I have updated the documentation (README, KDoc, etc.) if needed
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes
  • I have checked that my changes work across all relevant platforms
  • I have updated CLAUDE.md if architectural changes were made

Additional Notes

This was a latent misconfiguration — dependencyResolutionManagement.repositories in settings.gradle.kts had the JetBrains Space repo but it was never effective because allprojects repo declarations take precedence. Compose 1.10.1 happened to already be on Maven Central when CI ran; 1.10.2 was not yet propagated, exposing the bug.


Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/JetBrains/compose-multiplatform/releases
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • maven.pkg.jetbrains.space
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Pull request: #487

please, check logs and find a solution for not building this PR


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…se 1.10.2 build

Co-authored-by: alorma <887462+alorma@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix build issue for pull request 487 Fix compose 1.10.2 build failure: add JetBrains Space dev repo to allprojects repositories Mar 10, 2026
@alorma alorma marked this pull request as ready for review March 10, 2026 20:15
@alorma alorma merged commit 38e3539 into dependabot/gradle/compose-1.10.2 Mar 10, 2026
1 check passed
@alorma alorma deleted the copilot/fix-build-issue-pr-487 branch March 10, 2026 20:15
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