import org.gradle.api.tasks.testing.logging.TestLogEvent plugins { val kotlinVersion = "1.5.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 "10.1.0" } allprojects { repositories { mavenCentral() } } subprojects { apply(plugin = "org.jlleitschuh.gradle.ktlint") ktlint { disabledRules.set(setOf("no-wildcard-imports")) } tasks.withType { // JVM only kotlinOptions.jvmTarget = "15" } tasks.withType> { kotlinOptions.freeCompilerArgs += listOf( "-Xopt-in=kotlin.RequiresOptIn", "-Xopt-in=kotlin.time.ExperimentalTime", "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi" ) } tasks.withType { testLogging { events(TestLogEvent.FAILED, TestLogEvent.STANDARD_ERROR) exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL showStackTraces = true } } }