Hi, when building my project for Kotlin Native I’...
# kotlin-native
g
Hi, when building my project for Kotlin Native I’m receiving a error like:
Copy code
Could not find 'main' in '<root>' package.
I can move my main folder to the root package, but does someone know how can we configure the kotlin multiplatform plugin in order to provide another entry point? It looks like we have a option
-e
for command line but I’m not sure how to do that from the
build.gradle.kts
configuration file
a
This can be done by specifying
binaries.executable.entryPoint="org.my.package.whatever"
. See more details here here(https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#building-final-native-binaries), Configuring binaries.
g
Thanks @Artyom Degtyarev [JB] sharing!