Kotlin/Native 0.8.2 Released

We are happy to announce the 0.8.2 release of Kotlin/Native. In addition to the bug fixes and improvements, we have introduced support for Kotlin/Native Gradle projects directly in CLion!

Downloading Kotlin/Native

Update your CLion and Kotlin/Native for CLion plugin to the latest versions.

Check out the GitHub release page for more details or download binaries for macOSLinuxWindows. A Linux Snap package is also available.

Gradle Projects Support

Up until now, you were forced to use CMake projects to develop Kotlin/Native code in CLion. Some of you were using the Gradle task to generate a temporary CMake project instead. We deprecated the CMake support some time ago. The process was tricky and painful. Not anymore! Starting from the 0.8.2 release, you can open your Kotlin/Native Gradle projects directly in CLion, as easily as you would open your Gradle C++ projects with it. There is no need to use our deprecated CMake support anymore.

kotlin-native-0.8.2-gradle-4

You can start a new Gradle project with one of the included New Project templates:

kotlin-native-0.8.2-new-project

Or create an empty settings.gradle.kts file, place sources under src/main/kotlin folder, and create a new build.gradle.kts file with the following content:

You may want to checkout the Gradle Plugin Documentation for more details.

Starting from this release, we no longer support CMake for Kotlin/Native projects in CLion.

Have fun with Kotlin/Native!

About Eugene Petrenko

Eugene is a software developer, Ph.D., speaker, and blogger. He is working at JetBrains on the Developer Advocacy team and contributing to open source. His passion includes software architecture, server-side, clouds, AWS, production, programming languages. Eugene speaks and works with Java, Kotlin, Go, C/C++, Qt, .NET, Web. He started using Kotlin before trait was renamed to interface. Eugene has been a Kotlin fan for years and completed his first production Kotlin code back in 2013.
This entry was posted in Native, Releases, Tools. Bookmark the permalink.

13 Responses to Kotlin/Native 0.8.2 Released

  1. Markus Böck says:

    Very nice was waiting for this feature. One little quirk I have noticed for now is that compiler errors are currently only shown if one uses gradle as console instead of the other view. It would also be nice to get pretty printers for gdb!

  2. re says:

    a dedicated Kotlin IDE makes more sense than Go

    • Jacob says:

      Kotlin is a product of Jetbrains yet the full feature set is not available in a single Jetbrains IDE.

      I’m sure they’re aware of how silly that makes them look and hope that they will address it before Kotlin/Native 1.0.

  3. Alex Zhukov says:

    Wasn’t able to set debug breakpoint or setup run configuration
    ./gradlew run works
    Kotlin/Native support 182.4129.59
    gradle and gradle native installed
    clion 2018.2.2
    what am i doing wrong

  4. Jesus Zazueta says:

    Hi. Sorry, it’s not working for me. I’ve updated the Kotlin Native plugin and I’m trying out the sample projects, but the IDE doesn’t seem to be aware of the sample project structure.

    Version: 182.4129.59

  5. Campbell Jones says:

    Not working for me. CLion doesn’t index the sample project files, I can’t add a run configuration. Running through Gradle works, but the IDE doesn’t recognize anything.

  6. Salomon BRYS says:

    Does CLion supports :
    – multiplatform projects with expect/actual declarations ?
    – gradle dependencies either via the old plugin or the new ?

    A quick test I’ve made seems to indicate it does not.
    If it indeed does not, when can we expect it ?

    • Vyacheslav Karpukhin says:

      MPP are not yet supported, but native gradle dependencies should be processed correctly, at least using the old plugin.

Leave a Reply

Your email address will not be published. Required fields are marked *