Roman Elizarov | 1f74a2d | 2018-06-29 19:19:45 +0300 | [diff] [blame] | 1 | /* |
Vsevolod Tolstopyatov | 6d1a6e3 | 2020-02-18 15:28:00 +0300 | [diff] [blame] | 2 | * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
Roman Elizarov | 1f74a2d | 2018-06-29 19:19:45 +0300 | [diff] [blame] | 3 | */ |
Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 4 | |
| 5 | // Platform-specific configuration to compile JVM modules |
| 6 | |
Victor Turansky | fe2fedc | 2020-08-27 15:47:50 +0300 | [diff] [blame] | 7 | apply plugin: 'org.jetbrains.kotlin.jvm' |
Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 8 | |
| 9 | sourceCompatibility = 1.6 |
| 10 | targetCompatibility = 1.6 |
| 11 | |
| 12 | dependencies { |
Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 13 | testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version" |
Vsevolod Tolstopyatov | f2b4e0e | 2018-05-25 18:58:01 +0300 | [diff] [blame] | 14 | // Workaround to make addSuppressed work in tests |
Vsevolod Tolstopyatov | 06f57aa | 2018-07-24 19:51:21 +0300 | [diff] [blame] | 15 | testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" |
Vsevolod Tolstopyatov | f2b4e0e | 2018-05-25 18:58:01 +0300 | [diff] [blame] | 16 | testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 17 | testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" |
| 18 | testCompile "junit:junit:$junit_version" |
| 19 | } |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 20 | |
Vsevolod Tolstopyatov | 9cbad7d | 2020-03-27 17:43:45 +0300 | [diff] [blame] | 21 | compileKotlin { |
| 22 | kotlinOptions { |
| 23 | freeCompilerArgs += ['-Xexplicit-api=strict'] |
| 24 | } |
| 25 | } |
| 26 | |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 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 | } |