Skip to content

Commit

Permalink
Move dependency versions from properties to build script
Browse files Browse the repository at this point in the history
Versions of various dependencies that were previously defined in gradle.properties have been directly embedded into the build.gradle.kts script. This change simplifies the structure and makes dependency management in one centralized location.
  • Loading branch information
timakden committed Jun 25, 2024
1 parent 0db964e commit 1559cf0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 22 deletions.
23 changes: 9 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21

val arrowVersion: String by project
val coroutinesVersion: String by project
val kotestVersion: String by project
val kotlinVersion: String by project
val serializationVersion: String by project

plugins {
idea
id("com.github.ben-manes.versions") version "0.51.0"
Expand All @@ -23,14 +17,15 @@ repositories {
dependencies {
implementation(kotlin("reflect"))
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion")
implementation("io.arrow-kt:arrow-core:$arrowVersion")

testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("io.kotest:kotest-framework-datatest:$kotestVersion")
testImplementation("io.kotest:kotest-property:$kotestVersion")
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.0")
implementation("io.arrow-kt:arrow-core:1.2.4")

testImplementation(platform("io.kotest:kotest-bom:5.9.1"))
testImplementation("io.kotest:kotest-assertions-core")
testImplementation("io.kotest:kotest-framework-datatest")
testImplementation("io.kotest:kotest-property")
testImplementation("io.kotest:kotest-runner-junit5")
}

kotlin {
Expand Down
8 changes: 0 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
# Dependencies
arrowVersion=1.2.4
coroutinesVersion=1.8.1
kotestVersion=5.9.1
kotlinVersion=2.0.0
serializationVersion=1.7.0

# Other settings
kotlin.code.style=official

0 comments on commit 1559cf0

Please sign in to comment.