blob: c289b5057399138afba4cf3c63a766a278bfb081 [file] [log] [blame]
Roman Elizarove1a56522018-04-04 10:31:08 +03001
2// Platform-specific configuration to compile JVM modules
3
4apply plugin: 'kotlin-platform-jvm'
5
6sourceCompatibility = 1.6
7targetCompatibility = 1.6
8
Roman Elizarov31452902018-04-11 13:58:19 +03009kotlin.experimental.coroutines "enable"
10
Roman Elizarove1a56522018-04-04 10:31:08 +030011dependencies {
12 compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
13 testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
Vsevolod Tolstopyatovf2b4e0e2018-05-25 18:58:01 +030014 // Workaround to make addSuppressed work in tests
15 testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Roman Elizarove1a56522018-04-04 10:31:08 +030016 testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
17 testCompile "junit:junit:$junit_version"
18}
Roman Elizarov31452902018-04-11 13:58:19 +030019
20repositories {
21 jcenter()
22 maven { url "https://kotlin.bintray.com/kotlinx" }
23 maven { url "https://dl.bintray.com/devexperts/Maven/" }
24}
25
26tasks.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}