blob: caa5c45f608af378f10d54cebd2c74ac6200d8ef [file] [log] [blame]
Aurimas Liutikase64dad72021-05-12 21:56:16 +00001/*
2 * Copyright 2016-2020 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
7apply plugin: 'org.jetbrains.kotlin.jvm'
8
9sourceCompatibility = 1.6
10targetCompatibility = 1.6
11
12dependencies {
13 testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
14 // Workaround to make addSuppressed work in tests
15 testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
16 testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
17 testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
18 testCompile "junit:junit:$junit_version"
19}
20
21compileKotlin {
22 kotlinOptions {
23 freeCompilerArgs += ['-Xexplicit-api=strict']
24 }
25}
26
27tasks.withType(Test) {
28 testLogging {
29 showStandardStreams = true
30 events "passed", "failed"
31 }
32 def stressTest = project.properties['stressTest']
33 if (stressTest != null) systemProperties['stressTest'] = stressTest
34}