• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Platform-specific configuration to compile JVM modules
2 
3 import org.gradle.api.*
4 import org.jetbrains.kotlin.gradle.dsl.*
5 
<lambda>null6 plugins {
7     kotlin("jvm")
8 }
9 
<lambda>null10 java {
11     sourceCompatibility = JavaVersion.VERSION_1_8
12     targetCompatibility = JavaVersion.VERSION_1_8
13 }
14 
<lambda>null15 kotlin {
16     compilerOptions {
17         jvmTarget = JvmTarget.JVM_1_8
18         configureGlobalKotlinArgumentsAndOptIns()
19     }
20     jvmToolchain(jdkToolchainVersion)
21 }
22 
<lambda>null23 dependencies {
24     testImplementation(kotlin("test"))
25     // Workaround to make addSuppressed work in tests
26     testImplementation(kotlin("reflect"))
27     testImplementation(kotlin("stdlib-jdk7"))
28     testImplementation(kotlin("test-junit"))
29     testImplementation("junit:junit:${version("junit")}")
30 }
31 
<lambda>null32 tasks.withType<Test> {
33     testLogging {
34         showStandardStreams = true
35         events("passed", "failed")
36     }
37     val stressTest = project.properties["stressTest"]
38     if (stressTest != null) systemProperties["stressTest"] = stressTest
39 }
40