1 /* 2 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 5 // Platform-specific configuration to compile JVM modules 6 7 import org.gradle.api.* 8 <lambda>null9plugins { 10 kotlin("jvm") 11 } 12 <lambda>null13java { 14 sourceCompatibility = JavaVersion.VERSION_1_8 15 targetCompatibility = JavaVersion.VERSION_1_8 16 } 17 <lambda>null18dependencies { 19 testImplementation(kotlin("test")) 20 // Workaround to make addSuppressed work in tests 21 testImplementation(kotlin("reflect")) 22 testImplementation(kotlin("stdlib-jdk7")) 23 testImplementation(kotlin("test-junit")) 24 testImplementation("junit:junit:${version("junit")}") 25 } 26 <lambda>null27tasks.compileKotlin { 28 kotlinOptions { 29 freeCompilerArgs += listOf("-Xexplicit-api=strict") 30 } 31 } 32 <lambda>null33tasks.withType<Test> { 34 testLogging { 35 showStandardStreams = true 36 events("passed", "failed") 37 } 38 val stressTest = project.properties["stressTest"] 39 if (stressTest != null) systemProperties["stressTest"] = stressTest 40 } 41