import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.3.0-rc-190" } configurations { create("itestImplementation") { extendsFrom(getByName("testImplementation")) } create("itestRuntime") { extendsFrom(getByName("testRuntime")) } } repositories { jcenter() mavenCentral() maven("http://dl.bintray.com/kotlin/kotlin-eap") maven("https://dl.bintray.com/kotlin/ktor") } dependencies { implementation(kotlin("stdlib-jdk8")) implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.2-eap13") implementation("io.ktor:ktor-network:1.0.0-beta-1") testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0-RC3") testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1") testImplementation("org.junit.jupiter:junit-jupiter-params:5.3.1") testRuntime("org.junit.jupiter:junit-jupiter-engine:5.3.1") } java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 sourceSets { create("itest") { compileClasspath += getByName("main").output runtimeClasspath += getByName("main").output java.srcDirs("src/itest/kotlin") } } } tasks.create("itest") { group = "verification" testClassesDirs = java.sourceSets.getByName("itest").output.classesDirs classpath = java.sourceSets.getByName("itest").runtimeClasspath } tasks.withType { kotlinOptions { jvmTarget = "1.8" } } tasks.withType { useJUnitPlatform() testLogging { events("passed", "skipped", "failed") } } configurations.all { resolutionStrategy.eachDependency { if (requested.group == "org.jetbrains.kotlin") { useVersion("1.3.0-rc-190") } } }