but as soon as I add plugins { konan } I get "buil...
# kotlin-native
d
but as soon as I add plugins { konan } I get "build.gradle.kts165: Unresolved reference: konan"
k
the old syntax appears to work in kotlin gradle:
Copy code
apply { plugin("konan") }
buildscript {
    repositories { maven { setUrl("<https://dl.bintray.com/jetbrains/kotlin-native-dependencies>") } }
    dependencies {
        classpath("org.jetbrains.kotlin:kotlin-native-gradle-plugin:0.3")
    }
}
d
try using konanArtifacts afterwards
k
downloadKonanCompiler
task works, so the plugin is successfully loaded. I'm guessing some glue is needed to expose the gradle block syntax to kotlin, but i havent poked it that far
d
ok, thx so far