https://kotlinlang.org logo
Title
n

napperley

06/20/2018, 3:00 AM
Is there something in Gradle that will show all imports (based on all applied plugins) that can be included in a build.gradle.kts file? Need this in order to know what to import from the Konan plugin.
g

gildor

06/20/2018, 3:02 AM
What exactly do you want to know?
No imports
n

napperley

06/20/2018, 3:04 AM
This is what I am trying to automate with Gradle: https://gitlab.com/napperley/openfaas-weather-sample#building-program
g

gildor

06/20/2018, 3:14 AM
You want ti automate libcurl installation?
because you already need JVM to run gradle. You don’t need to install K/N SDK manually, konan plugin does it for you, cinterop can be configured from gradle
No need to import something, pretty straight forward convertation to kotlin-dsl from groovy: https://github.com/JetBrains/kotlin-native/blob/master/samples/libcurl/build.gradle
so what is not available out of the box is installation of libcurl and cjson.
n

napperley

06/20/2018, 3:54 AM
Meant automating steps 2-9 (excl step 4) in the "Building Program" section of the readme file.
g

gildor

06/20/2018, 3:58 AM
2, 5, 8, 9 already automated by konan gradle plugin
4 is not required, probably user already cloned this repo, otherwise you don’t have access to gradle and build.gradle that can automate something
3, 6, 7 is related to native dependencies and can be automated, but only as platform and OS specific solution