blob: caa5c45f608af378f10d54cebd2c74ac6200d8ef [file] [log] [blame]
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03001/*
Vsevolod Tolstopyatov6d1a6e32020-02-18 15:28:00 +03002 * Copyright 2016-2020 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
Victor Turanskyfe2fedc2020-08-27 15:47:50 +03007apply plugin: 'org.jetbrains.kotlin.jvm'
Roman Elizarove1a56522018-04-04 10:31:08 +03008
9sourceCompatibility = 1.6
10targetCompatibility = 1.6
11
12dependencies {
Roman Elizarove1a56522018-04-04 10:31:08 +030013 testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
Vsevolod Tolstopyatovf2b4e0e2018-05-25 18:58:01 +030014 // Workaround to make addSuppressed work in tests
Vsevolod Tolstopyatov06f57aa2018-07-24 19:51:21 +030015 testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
Vsevolod Tolstopyatovf2b4e0e2018-05-25 18:58:01 +030016 testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Roman Elizarove1a56522018-04-04 10:31:08 +030017 testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
18 testCompile "junit:junit:$junit_version"
19}
Roman Elizarov31452902018-04-11 13:58:19 +030020
Vsevolod Tolstopyatov9cbad7d2020-03-27 17:43:45 +030021compileKotlin {
22 kotlinOptions {
23 freeCompilerArgs += ['-Xexplicit-api=strict']
24 }
25}
26
Roman Elizarov31452902018-04-11 13:58:19 +030027tasks.withType(Test) {
28 testLogging {
29 showStandardStreams = true
30 events "passed", "failed"
31 }
32 def stressTest = project.properties['stressTest']
33 if (stressTest != null) systemProperties['stressTest'] = stressTest
34}