Completing Gradle script

After adding all the dependencies, the build.gradle file should look something like this:

    group 'com.news'    version '1.0-SNAPSHOT'    buildscript {      ext.kotlin_version = '1.1.51'      ext.ktor_version = '0.9.0-alpha-2'      ext.log_version = '1.2.3'      ext.fuel_version = '1.11.0'      repositories {        mavenCentral()      }      dependencies {        classpath "org.jetbrains.kotlin:kotlin-gradle-           plugin:$kotlin_version"      }    }    apply plugin: 'java'    apply plugin: 'kotlin'    sourceCompatibility = 1.8    repositories {      mavenCentral()      maven { url "https://dl.bintray.com/kotlin/kotlinx" }      maven { url "https://dl.bintray.com/kotlin/ktor" }    }    dependencies {      //Kotlin      compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"      // Ktor      compile "io.ktor:ktor:$ktor_version ...

Get Kotlin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.