Unified junit version, update junit to 5.4.2

This commit is contained in:
Him188 2021-04-06 00:11:12 +08:00
parent bfd8a0068c
commit 7402856b41
2 changed files with 6 additions and 4 deletions

View File

@ -99,8 +99,8 @@ fun Project.configureKotlinTestSettings() {
dependencies {
testImplementation(kotlin("test-junit5"))
testApi("org.junit.jupiter:junit-jupiter-api:5.2.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.2.0")
testApi("org.junit.jupiter:junit-jupiter-api:${Versions.junit}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${Versions.junit}")
}
}
isKotlinMpp -> {
@ -114,8 +114,8 @@ fun Project.configureKotlinTestSettings() {
sourceSet.dependencies {
implementation(kotlin("test-junit5"))
implementation("org.junit.jupiter:junit-jupiter-api:5.2.0")
implementation("org.junit.jupiter:junit-jupiter-engine:5.2.0")
implementation("org.junit.jupiter:junit-jupiter-api:${Versions.junit}")
implementation("org.junit.jupiter:junit-jupiter-engine:${Versions.junit}")
}
}
}

View File

@ -35,6 +35,8 @@ object Versions {
const val blockingBridge = "1.6.0"
const val junit = "5.4.2"
@Suppress("SpellCheckingInspection")
const val yamlkt = "0.7.5"