Closed mikehearn closed 5 years ago
AFAIK konan
plugin is deprecated and unsupported.
And does not work with Gradle 4.10.x
Yes, the konan
plugin is deprecated now, so I would recommend using the kotlin-multiplaform
plugin. It supports Kotlin/Native and also provides an IDE support for it. See here: https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html
The original issue with InvalidPluginException
is already fixed. Note that currently Kotlin/Native Gradle plugin uses the same versioning as other Kotlin plugins. So the latest plugin version is 1.3.10
and the version with the fix I've mentioned above is 1.3.0
.
Thanks. When I set both versions to 1.3.10 then it indeed works. This is odd because I was sure I had tried that combination already, but perhaps I wasn't setting Kotlin/Native to 1.3.10 properly. Thanks!
I have never been able to use Kotlin/Native in a Gradle project that also uses Kotlin/JVM 1.3 - I'm basically stuck at Kotlin 1.2.71 and Kotlin/Native 0.9.2 and cannot upgrade my open source project (see https://github.com/mikehearn/graviton-browser) although I don't think I'm doing anything clever or unusual :(
Any attempt to even load the plugin into a bog standard Gradle project dies with this error: