From 7402856b41ce3330da160914a7b8549c9ea4af02 Mon Sep 17 00:00:00 2001 From: Him188 Date: Tue, 6 Apr 2021 00:11:12 +0800 Subject: [PATCH] Unified junit version, update junit to 5.4.2 --- build.gradle.kts | 8 ++++---- buildSrc/src/main/kotlin/Versions.kt | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 52be20c93..ea22da9cf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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}") } } } diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index dcc2ca3e8..bbba0ecbc 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -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"