From 284e6f5bb381525d1ddc19c25579eef6436eca17 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Sun, 28 Feb 2021 00:05:48 +0300 Subject: [PATCH] Add runtime dependency on junit-jupiter-engine to kotlin-test-junit5 It is required to run tests authored with kotlin-test, so it seems convenient to have it as a runtime dependency of kotlin-test-junit5 variant. Depend on the version 5.6.0, which is approx. one year old. Can be upgraded in the consumer project if necessary. Also upgrade junit-jupiter-api dependency to 5.6.0, so that users could use more recent JUnit functionality in JVM tests, but continue compiling the artifact against 5.0.0 to leave a possibility to downgrade JUnit platform dependency if needed. KT-45107 --- libraries/kotlin.test/build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/kotlin.test/build.gradle.kts b/libraries/kotlin.test/build.gradle.kts index a78fdf6588b..74545518343 100644 --- a/libraries/kotlin.test/build.gradle.kts +++ b/libraries/kotlin.test/build.gradle.kts @@ -163,7 +163,8 @@ jvmTestFrameworks.forEach { framework -> apiElements("junit:junit:4.12") } "junit5" -> { - apiElements("org.junit.jupiter:junit-jupiter-api:5.0.0") + apiElements("org.junit.jupiter:junit-jupiter-api:5.6.0") + runtimeElements("org.junit.jupiter:junit-jupiter-engine:5.6.0") } "testng" -> { apiElements("org.testng:testng:6.13.1")