blob: 3ab25456f82d3bc36b35760ba52925a265cb77f3 [file] [log] [blame]
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03001/*
Vsevolod Tolstopyatove50a0fa2019-01-28 11:34:24 +03002 * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03003 */
Roman Elizarove1a56522018-04-04 10:31:08 +03004
5// Platform-specific configuration to compile JVM modules
6
Vsevolod Tolstopyatove50a0fa2019-01-28 11:34:24 +03007apply plugin: 'kotlin'
Roman Elizarove1a56522018-04-04 10:31:08 +03008
9sourceCompatibility = 1.6
10targetCompatibility = 1.6
11
12dependencies {
13 compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
14 testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
Vsevolod Tolstopyatovf2b4e0e2018-05-25 18:58:01 +030015 // Workaround to make addSuppressed work in tests
Vsevolod Tolstopyatov06f57aa2018-07-24 19:51:21 +030016 testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
Vsevolod Tolstopyatovf2b4e0e2018-05-25 18:58:01 +030017 testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Roman Elizarove1a56522018-04-04 10:31:08 +030018 testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
19 testCompile "junit:junit:$junit_version"
20}
Roman Elizarov31452902018-04-11 13:58:19 +030021
22repositories {
Roman Elizarov31452902018-04-11 13:58:19 +030023 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}