Switch to JUnit5
This commit is contained in:
parent
796b40b74f
commit
f2a5d0715c
@ -7,7 +7,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "scientifik"
|
group = "scientifik"
|
||||||
version = "0.4.1"
|
version = "0.4.2"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
|
@ -9,6 +9,7 @@ import org.gradle.api.plugins.JavaPluginExtension
|
|||||||
import org.gradle.api.publish.PublishingExtension
|
import org.gradle.api.publish.PublishingExtension
|
||||||
import org.gradle.api.publish.maven.MavenPublication
|
import org.gradle.api.publish.maven.MavenPublication
|
||||||
import org.gradle.api.tasks.bundling.Jar
|
import org.gradle.api.tasks.bundling.Jar
|
||||||
|
import org.gradle.api.tasks.testing.Test
|
||||||
import org.gradle.kotlin.dsl.*
|
import org.gradle.kotlin.dsl.*
|
||||||
import org.jetbrains.dokka.gradle.DokkaTask
|
import org.jetbrains.dokka.gradle.DokkaTask
|
||||||
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
|
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
|
||||||
@ -44,9 +45,9 @@ open class ScientifikJVMPlugin : Plugin<Project> {
|
|||||||
languageSettings.applySettings()
|
languageSettings.applySettings()
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test"))
|
implementation(kotlin("test"))
|
||||||
implementation(kotlin("test-junit"))
|
// implementation(kotlin("test-junit"))
|
||||||
// implementation(kotlin("test-junit5"))
|
implementation(kotlin("test-junit5"))
|
||||||
// implementation("org.junit.jupiter:junit-jupiter:5.5.2")
|
implementation("org.junit.jupiter:junit-jupiter:5.6.1")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,9 +93,9 @@ open class ScientifikJVMPlugin : Plugin<Project> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// tasks.withType<Test>(){
|
tasks.withType<Test>(){
|
||||||
// useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import org.gradle.api.plugins.JavaBasePlugin
|
|||||||
import org.gradle.api.publish.PublishingExtension
|
import org.gradle.api.publish.PublishingExtension
|
||||||
import org.gradle.api.publish.maven.MavenPublication
|
import org.gradle.api.publish.maven.MavenPublication
|
||||||
import org.gradle.api.tasks.bundling.Jar
|
import org.gradle.api.tasks.bundling.Jar
|
||||||
|
import org.gradle.api.tasks.testing.Test
|
||||||
import org.gradle.kotlin.dsl.*
|
import org.gradle.kotlin.dsl.*
|
||||||
import org.jetbrains.dokka.gradle.DokkaTask
|
import org.jetbrains.dokka.gradle.DokkaTask
|
||||||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
||||||
@ -60,9 +61,9 @@ open class ScientifikMPPlugin : Plugin<Project> {
|
|||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test"))
|
implementation(kotlin("test"))
|
||||||
implementation(kotlin("test-junit"))
|
// implementation(kotlin("test-junit"))
|
||||||
// implementation(kotlin("test-junit5"))
|
implementation(kotlin("test-junit5"))
|
||||||
// implementation("org.junit.jupiter:junit-jupiter:5.5.2")
|
implementation("org.junit.jupiter:junit-jupiter:5.6.1")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val jsMain by getting {
|
val jsMain by getting {
|
||||||
@ -127,13 +128,9 @@ open class ScientifikMPPlugin : Plugin<Project> {
|
|||||||
}
|
}
|
||||||
group = "distribution"
|
group = "distribution"
|
||||||
}
|
}
|
||||||
|
withType<Test>() {
|
||||||
// findByName("assemble")?.dependsOn(installJsDist)
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
// withType<Test>(){
|
|
||||||
// useJUnitPlatform()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ import java.io.File
|
|||||||
|
|
||||||
internal fun LanguageSettingsBuilder.applySettings(): Unit {
|
internal fun LanguageSettingsBuilder.applySettings(): Unit {
|
||||||
progressiveMode = true
|
progressiveMode = true
|
||||||
//enableLanguageFeature("InlineClasses")
|
enableLanguageFeature("InlineClasses")
|
||||||
useExperimentalAnnotation("kotlin.Experimental")
|
useExperimentalAnnotation("kotlin.Experimental")
|
||||||
useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
|
useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
|
||||||
useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
|
useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
|
||||||
|
Loading…
Reference in New Issue
Block a user