• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
5// Platform-specific configuration to compile JVM modules
6
7apply plugin: 'kotlin'
8
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"
15    // Workaround to make addSuppressed work in tests
16    testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
17    testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
18    testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
19    testCompile "junit:junit:$junit_version"
20}
21
22repositories {
23    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}
34