Aurimas Liutikas | e64dad7 | 2021-05-12 21:56:16 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 7 | apply plugin: 'org.jetbrains.kotlin.jvm' |
| 8 | |
| 9 | sourceCompatibility = 1.6 |
| 10 | targetCompatibility = 1.6 |
| 11 | |
| 12 | dependencies { |
| 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 | |
| 21 | compileKotlin { |
| 22 | kotlinOptions { |
| 23 | freeCompilerArgs += ['-Xexplicit-api=strict'] |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | tasks.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 | } |