Kotlin 1.3.20 Early Access Preview

Early Access Preview for Kotlin 1.3.20 is now open, with initial support for @PolymorphicSignature APIs, parallel task execution in Gradle builds, parameter info in lambdas, runnable scratch files in Android Studio and many bugfixes.
Please follow up and try it first! The full changelog is here.

How to get the EAP build

For IntelliJ IDEA

You can configure Early Access Preview channel in ToolsKotlinConfigure Kotlin Plugin Updates . Change the update channel to ‘Early Access Preview 1.3.20’ and press Check for updates now .

For Maven or Gradle

Add the https://dl.bintray.com/kotlin/kotlin-eap repository URL to the list of project repositories, and set kotlin_version to 1.3.20-eap-25 . Here is how to do this in Gradle:

buildscript {
    ext.kotlin_version = '1.3.20-eap-25'

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

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

apply plugin: "kotlin"

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

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib"
}

Please provide feedback and report issues to our issue tracker . Please don’t forget to specify your IDE/build system Kotlin plugin versions.

2 Likes

Hi there!
Early Access Preview 2 for Kotlin 1.3.20 is here, in addition to 1.3.20 EAP1 the Incremental compilation for Kotlin/JS is stable now and enabled by default.
Changelog to EAP1 is here

How to get the EAP build

For IntelliJ IDEA

You can configure Early Access Preview channel in ToolsKotlinConfigure Kotlin Plugin Updates . Change the update channel to ‘Early Access Preview 1.3.20’ and press Check for updates now .

For Maven or Gradle

Add the https://dl.bintray.com/kotlin/kotlin-eap repository URL to the list of project repositories, and set kotlin_version to 1.3.20-eap-52 . Here is how to do this in Gradle:

buildscript {
    ext.kotlin_version = '1.3.20-eap-52'

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

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

apply plugin: "kotlin"

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

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib"
}

Please provide feedback and report issues to our issue tracker . Please don’t forget to specify your IDE/build system Kotlin plugin versions.

Dear @Roman.Artemev,

Is it possible to use kotlin EAP with kotlin gradle DSL and new declarative plugins DSL? I’ve created my build.gradle.kts, but it uses apply(plugin = "kotlin") and I’m not sure how can I use plugins block

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

Thanks, @SackCastellon, it worked as expected!

The only difference from your example is that I’ve used implementation(kotlin("stdlib")) in my build.gradle.kts instead of implementation(kotlin("stdlib-jdk8")) like in your example. Does it make any actual difference?

No, unless you are using something specific from Java 8, like Streams.

Hi there!
Early Access Preview 3 for Kotlin 1.3.20 is released, in addition to 1.3.20 EAP2 lot of critical bugs were fixed.
Changelog to EAP2 is here

How to get the EAP build

For IntelliJ IDEA

You can configure Early Access Preview channel in ToolsKotlinConfigure Kotlin Plugin Updates . Change the update channel to ‘Early Access Preview 1.3.20’ and press Check for updates now .

For Maven or Gradle

Add the https://dl.bintray.com/kotlin/kotlin-eap repository URL to the list of project repositories, and set kotlin_version to 1.3.20-eap-100 . Here is how to do this in Gradle:

buildscript {
    ext.kotlin_version = '1.3.20-eap-100'

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

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

apply plugin: "kotlin"

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

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib"
}

Please provide feedback and report issues to our issue tracker . Please don’t forget to specify your IDE/build system Kotlin plugin versions.