plugins {
    id "java"
    id "org.jetbrains.kotlin.jvm" version "1.3.50"
}

group "org.example"
version "1.0-SNAPSHOT"

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
    def kotlinVersion = "1.3.50"

    implementation group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: kotlinVersion

    testImplementation group: "org.jetbrains.kotlin", name: "kotlin-test-common", version: kotlinVersion
    testImplementation group: "org.jetbrains.kotlin", name: "kotlin-test-junit5", version: kotlinVersion
    testImplementation "org.junit.jupiter:junit-jupiter:5.5.2"
}

test {
    useJUnitPlatform()
    testLogging {
        events "passed", "skipped", "failed"
    }
}

compileKotlin {
    kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
    kotlinOptions.jvmTarget = "1.8"
}