Skip to content

Commit 398f4de

Browse files
committed
Align version catalog aliases with a shared convention
Renames version aliases so that each dependency has one canonical name, matching the other Kotlin Multiplatform sample repositories. This makes versions directly comparable across samples instead of hiding behind several spellings of the same dependency. The convention: - One alias per independently-released dependency train, named after the train rather than after one artifact in it. - Lowercase kebab-case, with one exception: the android-compileSdk, android-minSdk and android-targetSdk trio, which build scripts read as libs.versions.android.compileSdk. - The prefix says who ships it. compose-* for JetBrains multiplatform artifacts (org.jetbrains.compose.*, org.jetbrains.androidx.*), androidx-* for Google's Android-only ones. Several samples use both at once, so the distinction has to be visible in the name. The [versions] block is also sorted alphabetically. No resolved dependency version changes: every rename keeps its value, and aliases merged together already held identical versions.
1 parent 0fc26c9 commit 398f4de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[versions]
22
agp = "9.0.1"
3-
kotlin = "2.3.10"
4-
android-minSdk = "24"
53
android-compileSdk = "36"
6-
vanniktechMavenPublish = "0.36.0"
4+
android-minSdk = "24"
5+
kotlin = "2.3.10"
6+
vanniktech-maven-publish = "0.36.0"
77

88
[libraries]
99
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
1010

1111
[plugins]
1212
android-kotlin-multiplatform-library = { id = "com.android.kotlin.multiplatform.library", version.ref = "agp" }
1313
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
14-
vanniktech-mavenPublish = { id = "com.vanniktech.maven.publish", version.ref = "vanniktechMavenPublish" }
14+
vanniktech-mavenPublish = { id = "com.vanniktech.maven.publish", version.ref = "vanniktech-maven-publish" }

0 commit comments

Comments
 (0)