Roman Elizarov | 1f74a2d | 2018-06-29 19:19:45 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
| 3 | */ |
Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 4 | |
| 5 | // Platform-specific configuration to compile JVM modules |
| 6 | |
| 7 | apply plugin: 'kotlin-platform-jvm' |
| 8 | |
| 9 | sourceCompatibility = 1.6 |
| 10 | targetCompatibility = 1.6 |
| 11 | |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 12 | kotlin.experimental.coroutines "enable" |
| 13 | |
Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 14 | dependencies { |
| 15 | compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" |
| 16 | testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version" |
Vsevolod Tolstopyatov | f2b4e0e | 2018-05-25 18:58:01 +0300 | [diff] [blame] | 17 | // Workaround to make addSuppressed work in tests |
Vsevolod Tolstopyatov | 06f57aa | 2018-07-24 19:51:21 +0300 | [diff] [blame] | 18 | testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" |
Vsevolod Tolstopyatov | f2b4e0e | 2018-05-25 18:58:01 +0300 | [diff] [blame] | 19 | testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 20 | testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" |
| 21 | testCompile "junit:junit:$junit_version" |
| 22 | } |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 23 | |
| 24 | repositories { |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 25 | maven { url "https://dl.bintray.com/devexperts/Maven/" } |
| 26 | } |
| 27 | |
| 28 | tasks.withType(Test) { |
| 29 | testLogging { |
| 30 | showStandardStreams = true |
| 31 | events "passed", "failed" |
| 32 | } |
| 33 | def stressTest = project.properties['stressTest'] |
| 34 | if (stressTest != null) systemProperties['stressTest'] = stressTest |
| 35 | } |