Join Slack
Powered by
Hello there! I installed ktor plugin, started my f...
# ktor
s
Sergey Shnifer
11/26/2018, 2:11 PM
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
Lucas
11/26/2018, 2:20 PM
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
gildor
11/27/2018, 2:28 AM
You need
application
plugin for that, it mentioned on docs shared by Lucas
s
Sergey Shnifer
11/27/2018, 5:50 AM
Thanks! I will try it
c
cy
11/27/2018, 5:20 PM
Have you used ktor plugin to create the project? application plugin is added by default by ktor project generator
s
Sergey Shnifer
11/27/2018, 8:36 PM
@cy
Yes, i used ktor plugin for IDEA
2
Views
Open in Slack
Previous
Next