Skip to content

Commit 3d23bfe

Browse files
authored
Publish explicit versions for BOM-managed Compose dependencies (#4)
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.
1 parent 262d7f6 commit 3d23bfe

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ minSdk=26
88
javaVersion=17
99
jvmTarget=17
1010

11-
libraryVersion=1.3.0
11+
libraryVersion=1.3.1
1212
android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false

gradle/libs.versions.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[versions]
2+
composeLibs = "1.7.8"
23
coroutines = "1.9.0"
34
agp = "9.2.1"
45
kotlin = "2.0.21"
@@ -19,9 +20,9 @@ espressoCore = "3.7.0"
1920
kotlinx-coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }
2021
# Jetpack Compose (with BOM)
2122
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
22-
androidx-ui = { group = "androidx.compose.ui", name = "ui" }
23-
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
24-
androidx-foundation = { group = "androidx.compose.foundation", name = "foundation" }
23+
androidx-ui = { group = "androidx.compose.ui", name = "ui", version.ref = "composeLibs" }
24+
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview", version.ref = "composeLibs" }
25+
androidx-foundation = { group = "androidx.compose.foundation", name = "foundation", version.ref = "composeLibs" }
2526

2627
# Lifecycle
2728
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
@@ -32,8 +33,8 @@ tomtom-map-display = { group = "com.tomtom.sdk.maps", name = "map-display-standa
3233

3334
# Sample app
3435
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
35-
androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
36-
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
36+
androidx-material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "composeLibs" }
37+
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", version.ref = "composeLibs" }
3738

3839
# Test
3940
junit = { group = "junit", name = "junit", version.ref = "junit" }

0 commit comments

Comments
 (0)