Kotlin 1.2.60 Early Access Preview


#1

We’re happy to announce the Early Access Preview (EAP) build for Kotlin 1.2.60!

What’s new

The full changelog is available 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.2.x’ 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. Here is how to do this in Gradle:

buildscript {
    ext.kotlin_version = '1.2.60-eap-7'

    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"
}

Change the version of Kotlin dependencies (compiler and stdlib) to 1.2.60-eap-7.

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


JsName and JVMName cannot be used in the same project
#2

The changelog mentions inline class. Is there a way to enable it?


#3

Inline classes are actually a feature of an upcoming 1.3 (https://github.com/Kotlin/KEEP/issues/104), which is being developed in the master branch under a separate compiler argument for simplicity. You can enable the feature with the compiler argument -XXLanguage:+InlineClasses. Note that this will mark your compiled code as “pre-release”, so that it’d be impossible to use it as a library when using “release” Kotlin versions (less than 1.3 at the moment).


Enable inline classes
#4

I’m a bit sad that the REPL got no love. It could be such a useful tool …


#5

I am using beakerx with kotlin kernel. Works like charm. Of course you need python runtime for that.


#6

#7

The new build 1.2.60-eap-27 has been published. The changelog (relative to the previous build) is available here.


#8

The new build 1.2.60-eap-44 has been published. The changelog (relative to the previous build) is available here.


#9

Gradle crashes with kotlinx.serialization plugin (v0.5.1)

* What went wrong:
A problem occurred configuring project ':caves'.
> Failed to notify project evaluation listener.
   > java.lang.AbstractMethodError (no error message)
   > java.lang.AbstractMethodError (no error message)

#10

There’s a note on github page of kotlinx.serialization that 1.2.60-eap-* works only with 0.5.2-SNAPSHOT version of plugin


#11

Woops, my bad :blush:


#12

The new build 1.2.60-eap-75 has been published. The changelog (relative to the previous build) is available here.


#13

1.2.60 doesn’t work with cordova-android 6.3.0 - it fails with “null cannot be cast to non-null type com.android.build.gradle.internal.VariantManager”


#14

@craig.sabbey Please report a new issue with the relevant code sample. Thanks!