GraalVM + Kotlin native app does nothing
vojkny opened this issue · 1 comments
vojkny commented
I created a simple merge of Kotlin and GraalVM examples here:
https://gitlab.com/GoOutPublic/MicronautKotlinDemo/tree/master
The merge wasn't straightforward and I had to add this to build.gradle
to make it work:
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
There is a CI task of two steps here:
https://gitlab.com/GoOutPublic/MicronautKotlinDemo/pipelines/58601472
It builds everything correctly and starting the application with gradle run
works. However the second stage building Graal native application builds an application, which does not do anything. It ends instantly with status code 0 as you can see in the end of the CI run:
https://gitlab.com/GoOutPublic/MicronautKotlinDemo/-/jobs/203106102
vojkny commented
There was shadow plugin missing in configuration.