From e5270d5f02d7a7aeb5772b5ffb4ce8e7bd6675ea Mon Sep 17 00:00:00 2001 From: Marius Volkhart Date: Sun, 14 Jun 2020 02:49:40 +0200 Subject: [PATCH] Update all test projects with latest JUnit 5 support Since JUnit 5.5, a different setup is required to make the modules work. --- test-project-groovy/gradle.properties | 3 ++- test-project-kotlin/build.gradle.kts | 2 ++ test-project-kotlin/gradle.properties | 3 ++- test-project-mixed/build.gradle | 1 + test-project-mixed/gradle.properties | 3 ++- test-project/gradle.properties | 4 ++-- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/test-project-groovy/gradle.properties b/test-project-groovy/gradle.properties index 95bdec6..5ef2ebc 100644 --- a/test-project-groovy/gradle.properties +++ b/test-project-groovy/gradle.properties @@ -1 +1,2 @@ -jUnitVersion = 5.3.1 +jUnitVersion = 5.6.2 +jUnitPlatformVersion = 1.6.2 diff --git a/test-project-kotlin/build.gradle.kts b/test-project-kotlin/build.gradle.kts index 694a999..fd4f37c 100644 --- a/test-project-kotlin/build.gradle.kts +++ b/test-project-kotlin/build.gradle.kts @@ -19,6 +19,7 @@ subprojects { val testRuntimeOnly by configurations val jUnitVersion: String by project + val jUnitPlatformVersion: String by project //endregion //region KOTLIN @@ -51,6 +52,7 @@ subprojects { testImplementation("org.junit.jupiter:junit-jupiter-api:$jUnitVersion") testImplementation("org.junit.jupiter:junit-jupiter-params:$jUnitVersion") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jUnitVersion") + testRuntimeOnly("org.junit.platform:junit-platform-launcher:$jUnitPlatformVersion") } // build.dependsOn(javadoc) // TODO: No public or protected classes found to document diff --git a/test-project-kotlin/gradle.properties b/test-project-kotlin/gradle.properties index 95bdec6..5ef2ebc 100644 --- a/test-project-kotlin/gradle.properties +++ b/test-project-kotlin/gradle.properties @@ -1 +1,2 @@ -jUnitVersion = 5.3.1 +jUnitVersion = 5.6.2 +jUnitPlatformVersion = 1.6.2 diff --git a/test-project-mixed/build.gradle b/test-project-mixed/build.gradle index 0bbf788..1799907 100644 --- a/test-project-mixed/build.gradle +++ b/test-project-mixed/build.gradle @@ -26,6 +26,7 @@ subprojects { testImplementation "org.junit.jupiter:junit-jupiter-api:$jUnitVersion" testImplementation "org.junit.jupiter:junit-jupiter-params:$jUnitVersion" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$jUnitVersion" + testRuntimeOnly "org.junit.platform:junit-platform-launcher:$jUnitPlatformVersion" } build.dependsOn javadoc diff --git a/test-project-mixed/gradle.properties b/test-project-mixed/gradle.properties index 95bdec6..5ef2ebc 100644 --- a/test-project-mixed/gradle.properties +++ b/test-project-mixed/gradle.properties @@ -1 +1,2 @@ -jUnitVersion = 5.3.1 +jUnitVersion = 5.6.2 +jUnitPlatformVersion = 1.6.2 diff --git a/test-project/gradle.properties b/test-project/gradle.properties index 54da848..5ef2ebc 100644 --- a/test-project/gradle.properties +++ b/test-project/gradle.properties @@ -1,2 +1,2 @@ -jUnitVersion = 5.5.2 -jUnitPlatformVersion = 1.5.2 +jUnitVersion = 5.6.2 +jUnitPlatformVersion = 1.6.2