Browse Source

Build: Replace alias() with library() in version catalog

pull/329/head
Jannis Weis 2 years ago
parent
commit
476676df50
No known key found for this signature in database
GPG Key ID: 7C9D8D4B558049AB
  1. 2
      settings.gradle.kts

2
settings.gradle.kts

@ -23,7 +23,7 @@ dependencyResolutionManagement {
versionCatalogs { versionCatalogs {
fun VersionCatalogBuilder.idv(name: String, coordinates: String, versionRef: String = name) { fun VersionCatalogBuilder.idv(name: String, coordinates: String, versionRef: String = name) {
val parts = coordinates.split(':', limit = 2) val parts = coordinates.split(':', limit = 2)
alias(name).to(parts[0], parts[1]).version(extra["$versionRef.version"].toString()) library(name, parts[0], parts[1]).version(extra["$versionRef.version"].toString())
} }
class VersionBundle(val bundleName: String, val builder: VersionCatalogBuilder) { class VersionBundle(val bundleName: String, val builder: VersionCatalogBuilder) {
val libs = mutableListOf<String>() val libs = mutableListOf<String>()

Loading…
Cancel
Save