title: Unresolved reference: compileKotlin in build.gradle.kts
body: <p>Kotlin project success build by build.gradle:</p>
  
  <pre><code>compileKotlin {
      kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
  }
  compileTestKotlin {
      kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
  }
  </code></pre>
  
  <p>Nice.</p>
  
  <p>But I need to change to <strong>build.gradle.kts</strong>:</p>
  
  <pre><code> plugins {
      kotlin("jvm") version "1.2.10"
      id("application")
  }
  
  group = "com.myproject"
  version = "1.0-SNAPSHOT"
  
  application {
      mainClassName = "MainKt"
  }
  
  java.sourceCompatibility = JavaVersion.VERSION_1_8
  
  repositories {
      mavenCentral()
      jcenter()
  }
  
  val kotlinVer = "1.2.10"
  
  dependencies {
      compile(kotlin(module = "stdlib-jre8", version = kotlinVer))
      implementation("com.google.code.gson:gson:2.7")
      implementation("com.squareup.okhttp3:logging-interceptor:3.8.0")
      implementation("com.squareup.retrofit2:converter-gson:2.1.0")
      implementation("com.squareup.retrofit2:retrofit:2.5.0")
      implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
  
  }
  
  compileKotlin {
      kotlinOptions.jvmTarget = "1.8"
  }
  compileTestKotlin {
      kotlinOptions.jvmTarget = "1.8"
  }
  </code></pre>
  
  <p>and now I get error:</p>
  
  <pre><code>Line 32: compileKotlin {
             ^ Unresolved reference: compileKotlin
  </code></pre>