Skip to content

Commit 0bf5f31

Browse files
Use JUnit BOM and add junit-platform-launcher to fix test failures
Co-Authored-By: Toshihiro Nakamura <[email protected]>
1 parent b6d55a5 commit 0bf5f31

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

compile-java-test/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ repositories {
3939
dependencies {
4040
annotationProcessor("org.seasar.doma:doma-processor:$domaVersion")
4141
implementation("org.seasar.doma:doma-core:$domaVersion")
42-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
43-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.12.2")
44-
}
42+
// Use JUnit BOM for version management
43+
testImplementation(platform("org.junit:junit-bom:5.12.2"))
44+
testImplementation("org.junit.jupiter:junit-jupiter-api")
45+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
46+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
47+
}

compile-kotlin-test/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ dependencies {
4646
kapt("org.seasar.doma:doma-processor:$domaVersion")
4747
implementation("org.seasar.doma:doma-core:$domaVersion")
4848
implementation("org.jetbrains.kotlin:kotlin-stdlib")
49-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
50-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.12.2")
51-
}
49+
// Use JUnit BOM for version management
50+
testImplementation(platform("org.junit:junit-bom:5.12.2"))
51+
testImplementation("org.junit.jupiter:junit-jupiter-api")
52+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
53+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
54+
}

compile-mix-test/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ dependencies {
4646
kapt("org.seasar.doma:doma-processor:$domaVersion")
4747
implementation("org.seasar.doma:doma-core:$domaVersion")
4848
implementation("org.jetbrains.kotlin:kotlin-stdlib")
49-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
50-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.12.2")
51-
}
49+
// Use JUnit BOM for version management
50+
testImplementation(platform("org.junit:junit-bom:5.12.2"))
51+
testImplementation("org.junit.jupiter:junit-jupiter-api")
52+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
53+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
54+
}

compile/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ repositories {
4545
}
4646

4747
dependencies {
48-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
49-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.12.2")
48+
// Use JUnit BOM for version management
49+
testImplementation(platform("org.junit:junit-bom:5.12.2"))
50+
testImplementation("org.junit.jupiter:junit-jupiter-api")
51+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
52+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
5053
}
5154

5255
tasks {

0 commit comments

Comments
 (0)