group 'com.baeldung.ktor' version '1.0-SNAPSHOT' buildscript { ext.kotlin_version = '1.3.30' repositories { mavenCentral() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } apply plugin: 'java' apply plugin: 'kotlin' apply plugin: 'application' mainClassName = 'APIServer.kt' sourceCompatibility = 1.8 compileKotlin { kotlinOptions.jvmTarget = "1.8" } compileTestKotlin { kotlinOptions.jvmTarget = "1.8" } repositories { mavenCentral() jcenter() maven { url "https://dl.bintray.com/kotlin/ktor" } } sourceSets { main{ kotlin{ srcDirs 'com/baeldung/ktor' } } } test { useJUnitPlatform() testLogging { events "passed", "skipped", "failed" } } dependencies { implementation "ch.qos.logback:logback-classic:1.2.1" implementation "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}" testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2' testImplementation 'junit:junit:4.12' testImplementation 'org.assertj:assertj-core:3.12.2' testImplementation 'org.mockito:mockito-core:2.27.0' testImplementation "org.jetbrains.kotlin:kotlin-test:${kotlin_version}" testImplementation "org.jetbrains.kotlin:kotlin-test-junit5:${kotlin_version}" }