diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c280954..1a05e34 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -9,7 +9,6 @@ findbugs-jsr305 = "3.0.2" junit = "5.+" assertj = "3.+" mockito = "5.+" -mockito-kotlin = "5.+" mockk = "1.+" spring-jdbc = "5.3.21" h2 = "2.1.214" @@ -32,3 +31,7 @@ spring-batch-test = { module = "org.springframework.batch:spring-batch-test", ve 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" } + +[bundles] +test-java = ["junit", "assertj", "mockito"] +test-kotlin = ["junit", "assertj", "mockk"] diff --git a/spring-batch-plus-kotlin/build.gradle.kts b/spring-batch-plus-kotlin/build.gradle.kts index 4f065a1..a4a9eae 100644 --- a/spring-batch-plus-kotlin/build.gradle.kts +++ b/spring-batch-plus-kotlin/build.gradle.kts @@ -11,9 +11,7 @@ dependencies { compileOnly(libs.spring.batch.core) implementation(libs.slf4j) - testImplementation(libs.junit) - testImplementation(libs.assertj) - testImplementation(libs.mockk) + testImplementation(libs.bundles.test.kotlin) testImplementation(libs.spring.batch.core) testImplementation(libs.spring.jdbc) testImplementation(libs.reactor.core) diff --git a/spring-batch-plus/build.gradle.kts b/spring-batch-plus/build.gradle.kts index 6516fd1..a8c0d86 100644 --- a/spring-batch-plus/build.gradle.kts +++ b/spring-batch-plus/build.gradle.kts @@ -11,9 +11,7 @@ dependencies { compileOnly(libs.reactor.core) implementation(libs.slf4j) - testImplementation(libs.junit) - testImplementation(libs.assertj) - testImplementation(libs.mockito) + testImplementation(libs.bundles.test.java) testImplementation(libs.spring.batch.core) testImplementation(libs.spring.batch.test) testImplementation(libs.reactor.core) diff --git a/spring-boot-autoconfigure-batch-plus-kotlin/build.gradle.kts b/spring-boot-autoconfigure-batch-plus-kotlin/build.gradle.kts index bcb44bf..e454f82 100644 --- a/spring-boot-autoconfigure-batch-plus-kotlin/build.gradle.kts +++ b/spring-boot-autoconfigure-batch-plus-kotlin/build.gradle.kts @@ -12,9 +12,7 @@ dependencies { compileOnly(libs.spring.batch.core) testImplementation(project(":spring-batch-plus-kotlin")) - testImplementation(libs.junit) - testImplementation(libs.assertj) - testImplementation(libs.mockk) + testImplementation(libs.bundles.test.kotlin) testImplementation(libs.spring.boot.autoconfigure) testImplementation(libs.spring.boot.test) testImplementation(libs.spring.batch.core)