Vsevolod Tolstopyatov | e50a0fa | 2019-01-28 11:34:24 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
| 3 | */ |
| 4 | |
| 5 | sourceCompatibility = 1.6 |
| 6 | targetCompatibility = 1.6 |
| 7 | |
| 8 | repositories { |
| 9 | maven { url "https://dl.bintray.com/devexperts/Maven/" } |
| 10 | } |
| 11 | |
| 12 | kotlin { |
| 13 | targets { |
| 14 | fromPreset(presets.jvm, 'jvm') |
| 15 | } |
| 16 | sourceSets { |
| 17 | jvmMain.dependencies { |
| 18 | api 'org.jetbrains.kotlin:kotlin-stdlib' |
Vsevolod Tolstopyatov | e50a0fa | 2019-01-28 11:34:24 +0300 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | jvmTest.dependencies { |
| 22 | api "org.jetbrains.kotlin:kotlin-test:$kotlin_version" |
| 23 | // Workaround to make addSuppressed work in tests |
| 24 | api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" |
| 25 | api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 26 | api "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" |
| 27 | api "junit:junit:$junit_version" |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | jvmTest { |
| 33 | testLogging { |
| 34 | showStandardStreams = true |
| 35 | events "passed", "failed" |
| 36 | } |
| 37 | def stressTest = project.properties['stressTest'] |
| 38 | if (stressTest != null) systemProperties['stressTest'] = stressTest |
| 39 | } |