Hello there! I installed ktor plugin, started my f...
# ktor
s
Hello there! I installed ktor plugin, started my first hello world ktor server and it works fine if I run it from IDE. Then I build a jar, but got "no main manifest attribute in hello.jar" when try to run it.
l
Are you using Gradle to generate the JAR file? The documentation suggests to use the ShadowJar plugin which works without messing with Jar Manifest. https://ktor.io/servers/deploy/packing/fatjar.html
g
You need
application
plugin for that, it mentioned on docs shared by Lucas
s
Thanks! I will try it
c
Have you used ktor plugin to create the project? application plugin is added by default by ktor project generator
s
@cy Yes, i used ktor plugin for IDEA