Kotlin 1.3.20 Early Access Preview

You can use Kotlin EAP with the new declarative plugins DSL, but you neet to specify the repository in the settings.gradle

build.gradle.kts

plugins {
    kotlin("jvm") version "1.3.20-eap-52"
}

repositories {
    maven("https://dl.bintray.com/kotlin/kotlin-eap")
    mavenCentral()
}

dependencies {
    implementation(kotlin("stdlib-jdk8"))
}

settings.gradle

pluginManagement {
    repositories {
        maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
        mavenCentral()
        maven { url 'https://plugins.gradle.org/m2/' }
    }
}
2 Likes