Skip to content

Commit

Permalink
Use Kotlin Wrappers version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialist7 committed Aug 14, 2024
1 parent f596816 commit f16625a
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 28 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Deps
kotlin.version=2.0.0
kotlin-wrappers.version=1.0.0-pre.786
kotlin.wrappers.version=0.0.1-pre.791
kfc.version=8.7.0
seskar.version=3.6.0
# MUI Deps
Expand Down
6 changes: 2 additions & 4 deletions mui-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ plugins {
`mui-declarations`
}

val kotlinWrappersVersion = property("kotlin-wrappers.version") as String
val seskarVersion = property("seskar.version") as String

dependencies {
Expand All @@ -18,7 +17,6 @@ dependencies {

jsMainImplementation("io.github.turansky.seskar:seskar-core:$seskarVersion")

jsMainApi(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:$kotlinWrappersVersion"))
jsMainApi("org.jetbrains.kotlin-wrappers:kotlin-react-dom")
jsMainApi("org.jetbrains.kotlin-wrappers:kotlin-popper")
jsMainApi(libs.wrappers.react.dom)
jsMainApi(libs.wrappers.react.dom)
}
76 changes: 59 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions playground/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ plugins {
id("io.github.turansky.kfc.application")
}

val kotlinWrappersVersion = property("kotlin-wrappers.version") as String

dependencies {
jsMainImplementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:$kotlinWrappersVersion"))
jsMainImplementation("org.jetbrains.kotlin-wrappers:kotlin-emotion")
jsMainImplementation("org.jetbrains.kotlin-wrappers:kotlin-react")
jsMainImplementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom")
jsMainImplementation(libs.wrappers.emotion)
jsMainImplementation(libs.wrappers.react)
jsMainImplementation(libs.wrappers.react.dom)

jsMainImplementation(project(":mui-kotlin"))

Expand Down
7 changes: 7 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ dependencyResolutionManagement {
repositories {
mavenCentral()
}

versionCatalogs {
create("libs") {
val wrappersVersion = extra["kotlin.wrappers.version"]
from("org.jetbrains.kotlin-wrappers:kotlin-wrappers-catalog:$wrappersVersion")
}
}
}

include("mui-kotlin")
Expand Down

0 comments on commit f16625a

Please sign in to comment.