import org.gradle.api.tasks.testing.logging.TestLogEvent plugins { val kotlinVersion = "1.4.0" 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.3.0" } allprojects { repositories { jcenter() } } subprojects { apply(plugin = "org.jlleitschuh.gradle.ktlint") ktlint { version.set("0.38.0-alpha01") disabledRules.set(setOf("no-wildcard-imports")) } val compilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn") tasks.withType { kotlinOptions.jvmTarget = "1.8" kotlinOptions.freeCompilerArgs += compilerArgs } tasks.withType { kotlinOptions.freeCompilerArgs = compilerArgs } tasks.withType { kotlinOptions.freeCompilerArgs = compilerArgs } tasks.withType { testLogging { events(TestLogEvent.FAILED, TestLogEvent.STANDARD_ERROR) exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL showStackTraces = true } } }