import org.gradle.api.tasks.testing.logging.TestLogEvent plugins { val kotlinVersion = "1.4.30" kotlin("js") version kotlinVersion apply false kotlin("jvm") version kotlinVersion apply false kotlin("multiplatform") version kotlinVersion apply false kotlin("plugin.spring") version kotlinVersion apply false kotlin("plugin.serialization") version kotlinVersion apply false id("org.jlleitschuh.gradle.ktlint") version "9.4.1" } allprojects { repositories { jcenter() } } subprojects { apply(plugin = "org.jlleitschuh.gradle.ktlint") ktlint { version.set("0.39.0") disabledRules.set(setOf("no-wildcard-imports")) } tasks.withType { // JVM only kotlinOptions.jvmTarget = "15" } // this doesn't cover multiplatform projects, see sw-common-model's build.gradle.kts tasks.withType> { kotlinOptions.freeCompilerArgs += listOf( "-Xopt-in=kotlin.RequiresOptIn", "-Xopt-in=kotlin.time.ExperimentalTime" ) } tasks.withType { testLogging { events(TestLogEvent.FAILED, TestLogEvent.STANDARD_ERROR) exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL showStackTraces = true } } }