• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
5sourceCompatibility = 1.8
6targetCompatibility = 1.8
7
8kotlin {
9    jvm {}
10    sourceSets {
11        jvmMain.dependencies {
12            compileOnly "org.codehaus.mojo:animal-sniffer-annotations:1.20"
13        }
14
15        jvmTest.dependencies {
16            api "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
17            // Workaround to make addSuppressed work in tests
18            api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
19            api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
20            api "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
21            api "junit:junit:$junit_version"
22        }
23    }
24}
25
26jvmTest {
27    testLogging {
28        showStandardStreams = true
29        events "passed", "failed"
30    }
31    def stressTest = project.properties['stressTest']
32    if (stressTest != null) systemProperties['stressTest'] = stressTest
33}
34