Skip to content

Commit a2ee402

Browse files
committed
feat: publish version catalog
One more way to align dependencies with modelix.core.
1 parent ea58fad commit a2ee402

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

build.gradle.kts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ buildscript {
1212

1313
plugins {
1414
`maven-publish`
15+
`version-catalog`
1516
alias(libs.plugins.kotlin.multiplatform) apply false
1617
alias(libs.plugins.kotlin.serialization) apply false
1718
alias(libs.plugins.gitVersion)
@@ -239,4 +240,20 @@ fun createDocsIndexPage(): String {
239240
}
240241
}
241242
}
242-
}
243+
}
244+
245+
catalog {
246+
versionCatalog {
247+
from(files("gradle/libs.versions.toml"))
248+
}
249+
}
250+
251+
publishing {
252+
publications {
253+
create<MavenPublication>("versionCatalog") {
254+
groupId = "org.modelix"
255+
artifactId = "core-version-catalog"
256+
from(components["versionCatalog"])
257+
}
258+
}
259+
}

0 commit comments

Comments
 (0)