blob: f6d76fcada5a8d0e80596a21d2a6d4ba97006944 [file] [log] [blame]
Vsevolod Tolstopyatove50a0fa2019-01-28 11:34:24 +03001/*
2 * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
5sourceCompatibility = 1.6
6targetCompatibility = 1.6
7
8repositories {
9 maven { url "https://dl.bintray.com/devexperts/Maven/" }
10}
11
12kotlin {
13 targets {
14 fromPreset(presets.jvm, 'jvm')
15 }
16 sourceSets {
17 jvmMain.dependencies {
18 api 'org.jetbrains.kotlin:kotlin-stdlib'
Vsevolod Tolstopyatove50a0fa2019-01-28 11:34:24 +030019 }
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
32jvmTest {
33 testLogging {
34 showStandardStreams = true
35 events "passed", "failed"
36 }
37 def stressTest = project.properties['stressTest']
38 if (stressTest != null) systemProperties['stressTest'] = stressTest
39}