Skip to content

Commit

Permalink
Create version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz committed Jan 22, 2025
1 parent b397663 commit c81f999
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ hs_err_pid*

.idea/
.gradle/
.kotlin/
target/
build/
kotlin-js-store/
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ kotlin {
}
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.1")
implementation("com.ionspin.kotlin:bignum:0.3.8")
implementation(libs.kotlinx.datetime)
implementation(libs.ionspin.bignum)
}
}
val commonTest by getting {
Expand All @@ -70,7 +70,7 @@ kotlin {
val jvmTest by getting
val jsMain by getting {
dependencies {
api("org.jetbrains.kotlin-wrappers:kotlin-js:1.0.0-pre.722")
api(libs.kotlinWrappers.js)
}
}
val jsTest by getting
Expand Down
8 changes: 4 additions & 4 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ repositories {
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.9.0")
implementation("io.github.gradle-nexus:publish-plugin:1.3.0")
implementation("dev.petuska:npm-publish-gradle-plugin:3.4.1")
implementation(libs.kotlin.plugin)
implementation(libs.dokka.plugin)
implementation(libs.nexusPublish.plugin)
implementation(libs.npmPublish.plugin)
}
7 changes: 7 additions & 0 deletions buildSrc/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}
22 changes: 22 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[versions]
kotlin = "1.9.22"
dokka = "1.9.0"
nexusPublish = "1.3.0"
npmPublish = "3.4.1"
kotlinxDatetime = "0.4.1"
bignum = "0.3.8"
kotlinJsWrappers = "1.0.0-pre.722"

[libraries]
kotlin-plugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }
dokka-plugin = { group = "org.jetbrains.dokka", name = "dokka-gradle-plugin", version.ref = "dokka" }
nexusPublish-plugin = { group = "io.github.gradle-nexus", name = "publish-plugin", version.ref = "nexusPublish" }
npmPublish-plugin = { group = "dev.petuska", name = "npm-publish-gradle-plugin", version.ref = "npmPublish" }

ionspin-bignum = { group = "com.ionspin.kotlin", name = "bignum", version.ref = "bignum" }
kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version.ref = "kotlinxDatetime"}
kotlinWrappers-js = { group = "org.jetbrains.kotlin-wrappers", name = "kotlin-js", version.ref = "kotlinJsWrappers"}

[plugins]

[bundles]

0 comments on commit c81f999

Please sign in to comment.