Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 1 | |
| 2 | // Platform-specific configuration to compile JVM modules |
| 3 | |
| 4 | apply plugin: 'kotlin-platform-jvm' |
| 5 | |
| 6 | sourceCompatibility = 1.6 |
| 7 | targetCompatibility = 1.6 |
| 8 | |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 9 | kotlin.experimental.coroutines "enable" |
| 10 | |
Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 11 | dependencies { |
| 12 | compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" |
| 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 |
| 15 | testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
Roman Elizarov | e1a5652 | 2018-04-04 10:31:08 +0300 | [diff] [blame] | 16 | testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" |
| 17 | testCompile "junit:junit:$junit_version" |
| 18 | } |
Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 19 | |
| 20 | repositories { |
| 21 | jcenter() |
| 22 | maven { url "https://kotlin.bintray.com/kotlinx" } |
| 23 | maven { url "https://dl.bintray.com/devexperts/Maven/" } |
| 24 | } |
| 25 | |
| 26 | tasks.withType(Test) { |
| 27 | testLogging { |
| 28 | showStandardStreams = true |
| 29 | events "passed", "failed" |
| 30 | } |
| 31 | def stressTest = project.properties['stressTest'] |
| 32 | if (stressTest != null) systemProperties['stressTest'] = stressTest |
| 33 | } |