Skip to content

Commit 6c62a43

Browse files
Refactor to use org.junit:junit-bom:5.12.2 for dependency management
Co-Authored-By: Toshihiro Nakamura <[email protected]>
1 parent 445f115 commit 6c62a43

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

codegen-test/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ dependencies {
4040

4141
implementation("org.seasar.doma:doma-core:$domaVersion")
4242
annotationProcessor("org.seasar.doma:doma-processor:$domaVersion")
43-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
44-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.12.2")
45-
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.12.2")
43+
44+
// Use JUnit BOM for version management
45+
testImplementation(platform("org.junit:junit-bom:5.12.2"))
46+
testImplementation("org.junit.jupiter:junit-jupiter-api")
47+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
48+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
4649
testRuntimeOnly("com.h2database:h2:$h2Version")
4750
}
4851

codegen/build.gradle.kts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ repositories {
5252
dependencies {
5353
implementation("org.freemarker:freemarker:2.3.34")
5454
testImplementation("org.seasar.doma:doma-core:3.7.0")
55-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
56-
testImplementation("org.junit.jupiter:junit-jupiter-params:5.12.2")
57-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.12.2")
58-
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.12.2")
55+
56+
// Use JUnit BOM for version management
57+
testImplementation(platform("org.junit:junit-bom:5.12.2"))
58+
testImplementation("org.junit.jupiter:junit-jupiter-api")
59+
testImplementation("org.junit.jupiter:junit-jupiter-params")
60+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
61+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
5962
}
6063

6164
tasks {

0 commit comments

Comments
 (0)