From 6fed4270f30bafbfd42d4f7d732965e4a1363501 Mon Sep 17 00:00:00 2001 From: Krom Date: Sun, 6 May 2018 18:56:28 +0300 Subject: [PATCH] Fixes test run from Gradle --- m3uparser/build.gradle | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/m3uparser/build.gradle b/m3uparser/build.gradle index d72e58a..e18bf54 100644 --- a/m3uparser/build.gradle +++ b/m3uparser/build.gradle @@ -1,7 +1,7 @@ buildscript { ext.kotlin_version = "1.2.41" - ext.junitPlatformVersion = "1.0.2" - ext.junitJupiterVersion = "5.0.2" + ext.junitPlatformVersion = "1.2.0" + ext.junitJupiterVersion = "5.2.0" ext.antlrVersion = "4.7" ext.assertJVersion = "3.9.1" @@ -10,7 +10,6 @@ buildscript { } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") - classpath("org.junit.platform:junit-platform-gradle-plugin:$junitPlatformVersion") } } @@ -19,13 +18,16 @@ plugins { id "com.gradle.build-scan" version "1.13.1" } +test { + useJUnitPlatform() +} + buildScan { termsOfServiceUrl = "https://gradle.com/terms-of-service" termsOfServiceAgree = "yes" } apply plugin: "kotlin" -apply plugin: "org.junit.platform.gradle.plugin" apply plugin: "antlr" apply plugin: "idea" @@ -43,10 +45,10 @@ dependencies { implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version") testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion") + testImplementation("org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion") testImplementation("org.assertj:assertj-core:$assertJVersion") testRuntime("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion") - testRuntime("org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion") testRuntime("org.junit.platform:junit-platform-launcher:$junitPlatformVersion") }