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
This commit is contained in:
Ilya Gorbunov
2021-02-28 00:05:48 +03:00
parent 28452fc38e
commit 284e6f5bb3

View File

@@ -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")