From 1ca34c2da4191ca3fb812f072182cc81f7766b32 Mon Sep 17 00:00:00 2001 From: Masashi Katsumata Date: Sun, 16 Aug 2026 23:44:44 +0900 Subject: [PATCH] Publish explicit versions for BOM-managed Compose dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Maven Central rejects a POM that declares a dependency without a version. The Compose BOM supplies those versions at resolution time, but a BOM does not travel in the published POM, so consumers who do not import the BOM themselves get an unresolvable dependency. Give the BOM-managed Compose artifacts an explicit version (`composeLibs`, 1.7.8 — what compose-bom 2025.02.00 resolves to) so the version reaches the POM. The BOM still governs resolution; this only fixes what is published. Release as 1.3.1: Maven Central versions cannot be replaced. --- gradle.properties | 4 ++-- gradle/libs.versions.toml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index d0df7de..7a6ca24 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,6 +8,6 @@ minSdk=26 javaVersion=17 jvmTarget=17 -libraryVersion=1.3.0 -coreLibraryVersion=1.3.0 +libraryVersion=1.3.1 +coreLibraryVersion=1.3.1 android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 922a1fa..d4bd40f 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,4 +1,5 @@ [versions] +composeLibs = "1.7.8" agp = "9.2.1" kotlin = "2.0.21" @@ -16,7 +17,7 @@ espressoCore = "3.7.0" [libraries] # Jetpack Compose (with BOM) androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" } -androidx-compose-runtime = { group = "androidx.compose.runtime", name = "runtime" } +androidx-compose-runtime = { group = "androidx.compose.runtime", name = "runtime", version.ref = "composeLibs" } # Coroutines kotlinx-coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }