Skip to content

Commit

Permalink
chore: move version catalog to standard toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuckame committed Sep 12, 2024
1 parent 5389bd0 commit fab7125
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
4 changes: 4 additions & 0 deletions benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ dependencies {
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-avro:$jacksonVersion")

implementation(project(":"))
}

repositories {
mavenCentral()
}
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,8 @@ spotless {
kotlinGradle {
ktlint()
}
}

repositories {
mavenCentral()
}
26 changes: 26 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[versions]
kotlin = "2.0.0"
jvm = "21"
kotlinxSerialization = "1.7.0"
kotestVersion = "5.9.1"
okio = "3.9.0"
apache-avro = "1.11.3"

[libraries]
apache-avro = { group = "org.apache.avro", name = "avro", version.ref = "apache-avro" }
okio = { group = "com.squareup.okio", name = "okio", version.ref = "okio" }
kotlinx-serialization-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-core", version.ref = "kotlinxSerialization" }
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
kotest-core = { group = "io.kotest", name = "kotest-assertions-core", version.ref = "kotestVersion" }
kotest-json = { group = "io.kotest", name = "kotest-assertions-json", version.ref = "kotestVersion" }
kotest-junit5 = { group = "io.kotest", name = "kotest-runner-junit5", version.ref = "kotestVersion" }
kotest-property = { group = "io.kotest", name = "kotest-property", version.ref = "kotestVersion" }

[plugins]
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
kotest = { id = "io.kotest", version = "0.4.11" }
github-versions = { id = "com.github.ben-manes.versions", version = "0.51.0" }
nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version = "2.0.0" }
spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.8.1" }
binary-compatibility-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.14.0" }
34 changes: 0 additions & 34 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,4 @@ gradleEnterprise {
termsOfServiceAgree = "yes"
}
}
}

dependencyResolutionManagement {
versionCatalogs {
create("libs") {
version("kotlin", "2.0.0")
version("jvm", "21")

library("apache-avro", "org.apache.avro", "avro").version("1.11.3")
library("okio", "com.squareup.okio", "okio").version("3.9.0")

val kotlinxSerialization = "1.7.0"
library("kotlinx-serialization-core", "org.jetbrains.kotlinx", "kotlinx-serialization-core").version(kotlinxSerialization)
library("kotlinx-serialization-json", "org.jetbrains.kotlinx", "kotlinx-serialization-json").version(kotlinxSerialization)

val kotestVersion = "5.9.1"
library("kotest-core", "io.kotest", "kotest-assertions-core").version(kotestVersion)
library("kotest-json", "io.kotest", "kotest-assertions-json").version(kotestVersion)
library("kotest-junit5", "io.kotest", "kotest-runner-junit5").version(kotestVersion)
library("kotest-property", "io.kotest", "kotest-property").version(kotestVersion)

plugin("dokka", "org.jetbrains.dokka").version("1.9.20")
plugin("kotest", "io.kotest").version("0.4.11")
plugin("github-versions", "com.github.ben-manes.versions").version("0.51.0")
plugin("nexus-publish", "io.github.gradle-nexus.publish-plugin").version("2.0.0")
plugin("spotless", "com.diffplug.spotless").version("6.25.0")
plugin("kover", "org.jetbrains.kotlinx.kover").version("0.8.1")
plugin("binary-compatibility-validator", "org.jetbrains.kotlinx.binary-compatibility-validator").version("0.14.0")
}
}
@Suppress("UnstableApiUsage")
repositories {
mavenCentral()
}
}

0 comments on commit fab7125

Please sign in to comment.