blob: f23aeb3d62c467786ebc0e0a575f7683518e7ce2 [file] [log] [blame]
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03001/*
2 * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
Roman Elizarove1a56522018-04-04 10:31:08 +03004
5// Platform-specific configuration to compile JVM modules
6
7apply plugin: 'kotlin-platform-jvm'
8
9sourceCompatibility = 1.6
10targetCompatibility = 1.6
11
Roman Elizarov31452902018-04-11 13:58:19 +030012kotlin.experimental.coroutines "enable"
13
Roman Elizarove1a56522018-04-04 10:31:08 +030014dependencies {
15 compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
16 testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
Vsevolod Tolstopyatovf2b4e0e2018-05-25 18:58:01 +030017 // Workaround to make addSuppressed work in tests
Vsevolod Tolstopyatov06f57aa2018-07-24 19:51:21 +030018 testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
Vsevolod Tolstopyatovf2b4e0e2018-05-25 18:58:01 +030019 testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Roman Elizarove1a56522018-04-04 10:31:08 +030020 testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
21 testCompile "junit:junit:$junit_version"
22}
Roman Elizarov31452902018-04-11 13:58:19 +030023
24repositories {
Roman Elizarov31452902018-04-11 13:58:19 +030025 maven { url "https://dl.bintray.com/devexperts/Maven/" }
26}
27
28tasks.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}