Skip to content

Commit

Permalink
chore: use gradle version catalog (#243)
Browse files Browse the repository at this point in the history
* chore: use gradle version catalog
  • Loading branch information
PhilippHeuer authored Feb 21, 2025
1 parent 625e3b4 commit 22c4d79
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ projectConfiguration {

dependencies {
// annotations
implementation("org.jspecify:jspecify:1.0.0")
implementation(libs.jspecify)
}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Plugins
plugins {
id("me.philippheuer.configuration") version "0.14.0"
alias(libs.plugins.configuration)
}

version = properties["version"] as String
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ dependencies {
testImplementation(project(":handler-reactor"))

// annotations
implementation("org.jspecify:jspecify:1.0.0")
implementation(libs.jspecify)
}
12 changes: 12 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[libraries]
jspecify = { module = "org.jspecify:jspecify", version = "1.0.0" }
reactorCore = { module = "io.projectreactor:reactor-core", version = "3.7.3" }
reactorExtra = { module = "io.projectreactor.addons:reactor-extra", version = "3.5.2" }
reactorTest = { module = "io.projectreactor:reactor-test", version = "3.7.3" }
springBootStarter = { module = "org.springframework.boot:spring-boot-starter", version = "2.7.18" }
springBootStarterTest = { module = "org.springframework.boot:spring-boot-starter-test", version = "2.7.18" }
kotlinCoroutinesCore = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version = "1.10.1" }
kotlinCoroutinesTest = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version = "1.10.1" }

[plugins]
configuration = { id = "me.philippheuer.configuration", version = "0.14.0" }
8 changes: 4 additions & 4 deletions handler-reactor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ dependencies {
testImplementation(project(":core"))

// reactor - see https://repo1.maven.org/maven2/io/projectreactor/reactor-bom/Dysprosium-SR12/reactor-bom-Dysprosium-SR12.pom
api("io.projectreactor:reactor-core:3.7.3")
api("io.projectreactor.addons:reactor-extra:3.5.2")
testImplementation("io.projectreactor:reactor-test:3.7.3")
api(libs.reactorCore)
api(libs.reactorExtra)
testImplementation(libs.reactorTest)

// annotations
implementation("org.jspecify:jspecify:1.0.0")
implementation(libs.jspecify)
}
2 changes: 1 addition & 1 deletion handler-simple/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ dependencies {
testImplementation(project(":core"))

// annotations
implementation("org.jspecify:jspecify:1.0.0")
implementation(libs.jspecify)
}
6 changes: 3 additions & 3 deletions handler-spring/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ dependencies {
testImplementation(project(":core"))

// spring
api("org.springframework.boot:spring-boot-starter:2.7.18")
testImplementation("org.springframework.boot:spring-boot-starter-test:2.7.18")
api(libs.springBootStarter)
testImplementation(libs.springBootStarterTest)

// annotations
implementation("org.jspecify:jspecify:1.0.0")
implementation(libs.jspecify)
}
4 changes: 2 additions & 2 deletions kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ projectConfiguration {
dependencies {
// project
api(project(":api"))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
api(libs.kotlinCoroutinesCore)

// testing
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.1")
testImplementation(libs.kotlinCoroutinesTest)
testImplementation(project(":core"))
testImplementation(project(":handler-simple"))
}

0 comments on commit 22c4d79

Please sign in to comment.