Skip to content

Commit

Permalink
Change version catalog to toml based
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <[email protected]>
  • Loading branch information
acktsap authored Dec 19, 2024
1 parent ffb7624 commit a365786
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 70 deletions.
35 changes: 35 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[versions]
spring-boot = "3.2.0"
spring-batch = "5.1.0"
slf4j = "1.7.36"
reactor-core = "3.5.0"
findbugs-jsr305 = "3.0.2"

# test-only
junit = "5.+"
assertj = "3.+"
mockito = "5.+"
mockito-kotlin = "5.+"
mockk = "1.+"
spring-jdbc = "5.3.21"
h2 = "2.1.214"
log4j = "2.17.2"

[libraries]
spring-boot-autoconfigure = { module = "org.springframework.boot:spring-boot-autoconfigure", version.ref = "spring-boot" }
spring-batch-core = { module = "org.springframework.batch:spring-batch-core", version.ref = "spring-batch" }
slf4j = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
reactor-core = { module = "io.projectreactor:reactor-core", version.ref = "reactor-core" }
findbugs-jsr305 = { module = "com.google.code.findbugs:jsr305", version.ref = "findbugs-jsr305" }

# test-only
junit = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit" }
assertj = { module = "org.assertj:assertj-core", version.ref = "assertj" }
mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
mockito-kotlin = { module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockito-kotlin" }
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
spring-boot-test = { module = "org.springframework.boot:spring-boot-test", version.ref = "spring-boot" }
spring-batch-test = { module = "org.springframework.batch:spring-batch-test", version.ref = "spring-batch" }
spring-jdbc = { module = "org.springframework:spring-jdbc", version.ref = "spring-jdbc" }
h2 = { module = "com.h2database:h2", version.ref = "h2" }
log4j = { module = "org.apache.logging.log4j:log4j-slf4j-impl", version.ref = "log4j" }
70 changes: 0 additions & 70 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,74 +21,4 @@ dependencyResolutionManagement {
mavenCentral()
maven("https://repo.spring.io/milestone/")
}

versionCatalogs {
create("libs") {
val springBootVersion = "3.2.0"
val springBatchVersion = "5.1.0"

library(
"spring-boot-autoconfigure",
"org.springframework.boot:spring-boot-autoconfigure:$springBootVersion",
)
library(
"spring-batch-core",
"org.springframework.batch:spring-batch-core:$springBatchVersion",
)
library(
"slf4j",
"org.slf4j:slf4j-api:1.7.36",
)
library(
"reactor-core",
"io.projectreactor:reactor-core:3.5.0",
)
library(
"findbugs-jsr305",
"com.google.code.findbugs:jsr305:3.0.2",
)

// test only
library(
"junit",
"org.junit.jupiter:junit-jupiter:5.+",
)
library(
"assertj",
"org.assertj:assertj-core:3.+",
)
library(
"mockito",
"org.mockito:mockito-core:5.+",
)
library(
"mockito-kotlin",
"org.mockito.kotlin:mockito-kotlin:5.+",
)
library(
"mockk",
"io.mockk:mockk:1.+",
)
library(
"spring-boot-test",
"org.springframework.boot:spring-boot-test:$springBootVersion",
)
library(
"spring-batch-test",
"org.springframework.batch:spring-batch-test:$springBatchVersion",
)
library(
"spring-jdbc",
"org.springframework:spring-jdbc:5.3.21",
)
library(
"h2",
"com.h2database:h2:2.1.214",
)
library(
"log4j",
"org.apache.logging.log4j:log4j-slf4j-impl:2.17.2",
)
}
}
}

0 comments on commit a365786

Please sign in to comment.