Kotlin 1.3.40 Early Access Preview

Early Access Preview for Kotlin 1.3.40 is now open. We begin stabilization process of new type inference. Now new type inference, which has been experimental since 1.3.0, is enabled by default in the plugin, but not for compilation. Thus, if code without errors in IDE does not compile, please, report the issue to our issue tracker. The feature can be disabled by unchecking Enable new type inference algorithm for IDE analysis (experimental) checkbox in Settings β†’ Build, Execution, Deployment β†’ Compiler β†’ Kotlin Compiler.

Additionally, this EAP comes with improvements of Kotlin/JS support in Gradle (such as NodeJS downloading and NodeJS test runner), addition of typeOf function, intrinsification of trimIndent and trimMargin, support for external nullability annotations and many small features and 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 Tools β†’ Kotlin β†’ Configure Kotlin Plugin Updates . Change the update channel to β€˜Early Access Preview 1.3.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, and set kotlin_version to 1.3.40-eap-105 .
Here is how to do this in Gradle:

buildscript { 
  ext.kotlin_version = '1.3.40-eap-105' 
  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, as well as whether new type inference is enabled or not.

2 Likes

See also the Kotlin Gradle DSL version: Kotlin 1.3.20 Early Access Preview - #7 by SackCastellon

1 Like

Updated build version

1 Like

Updated to EAP 2

Updated to EAP 3