group 'com.alimuzaffar.demo' version '1.0-SNAPSHOT' buildscript { ext.kotlin_version = '1.1.3' ext.ktorVersion = '0.3.3' repositories { mavenCentral() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } apply plugin: 'java' apply plugin: 'kotlin' sourceCompatibility = 1.8 repositories { mavenCentral() jcenter() maven { url "https://dl.bintray.com/kotlin/kotlinx" } maven { url "https://dl.bintray.com/kotlin/ktor" } } dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version" compile "org.jetbrains.ktor:ktor-core:$ktorVersion" compile "org.jetbrains.ktor:ktor-jetty:$ktorVersion" compile "org.jetbrains.ktor:ktor-netty:$ktorVersion" compile group: 'com.google.code.gson', name: 'gson', version: '2.3.1' testCompile group: 'junit', name: 'junit', version: '4.12' } compileKotlin { kotlinOptions.jvmTarget = "1.8" } compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }