Skip to content

Commit

Permalink
Migrate to Gradle's Version Catalogs (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix authored Jan 11, 2025
1 parent 1a22a1b commit 0c65a37
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ repositories {
}

dependencies {
api("ch.qos.logback:logback-classic:[1.2,2)!!1.3.14")
implementation("org.slf4j:slf4j-api:[1.7,3)!!2.0.16")
api("ch.qos.logback:logback-classic:${libs.versions.logbackVersionrange.get()}!!${libs.versions.logback.get()}")
implementation("org.slf4j:slf4j-api:${libs.versions.slf4jVersionrange.get()}!!${libs.versions.slf4j.get()}")
testImplementation("org.spockframework:spock-core:2.3-groovy-4.0")
}

Expand Down
9 changes: 9 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[versions]
logback = "1.3.14"
logbackVersionrange = "[1.2,2)"
slf4j = "2.0.16"
slf4jVersionrange = "[1.7,3)"

[libraries]
logback = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
slf4j = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }

0 comments on commit 0c65a37

Please sign in to comment.