• 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            // Workaround until https://github.com/JetBrains/kotlin/pull/4999 is picked up
14            api "org.jetbrains:annotations:23.0.0"
15        }
16
17        jvmTest.dependencies {
18            api "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
19            // Workaround to make addSuppressed work in tests
20            api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
21            api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
22            api "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
23            api "junit:junit:$junit_version"
24        }
25    }
26}
27
28jvmTest {
29    testLogging {
30        showStandardStreams = true
31        events "passed", "failed"
32    }
33    def stressTest = project.properties['stressTest']
34    if (stressTest != null) systemProperties['stressTest'] = stressTest
35}
36