how can i run a simple main method from gradle wit...
# webassembly
c
how can i run a simple main method from gradle with wasmWasi?
i
./gradlew wasmWasiNodeRun
c
right but how do i set what class the main method is in?
or in what file does it look per default?
i
top level
fun main() { }
is fine
c
is it possible to configure the classname?
i
You cannot use class methods for
main
functions
c
ok how do i define the package then?
i
The logic of selecting
main
is not yet designed. So if you have any
main
with any qualified name it will use it. If you have two `main`’s, than it is not really defined which one will be used.
c
ah ok so totally different than on the jvm.
👌 1
but i can put it in any package and it will find it?
👌 1
but only one entry point per module then.
👌 1
thanks!
kodee welcoming 1