Debian Codegraph @

platform-tooling-support-tests/projects/gradle-kotlin-extensions/build.gradle.kts

raw
1 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
3 plugins {
4 kotlin("jvm") version "1.2.71"
5 }
6
7 repositories {
8 maven { url = uri(file(System.getProperty("maven.repo"))) }
9 mavenCentral()
10 }
11
12 // grab jupiter version from system environment
13 val jupiterVersion = System.getenv("JUNIT_JUPITER_VERSION")
14
15 dependencies {
16 testImplementation(kotlin("stdlib-jdk8"))
17 testImplementation("org.junit.jupiter:junit-jupiter:$jupiterVersion")
18 }
19
20 tasks.withType<KotlinCompile>().configureEach {
21 kotlinOptions {
22 jvmTarget = "1.8"
23 apiVersion = "1.1"
24 languageVersion = "1.1"
25 }
26 }
27
28 tasks.test {
29 useJUnitPlatform()
30 testLogging {
31 events("passed", "skipped", "failed")
32 }
33 }