Is there an easier way to figure out how to build ...
# getting-started
m
Is there an easier way to figure out how to build a fat jar with shadowjar without reading the entire shadowjar user guide? o.O
k
I don't recall there being more to it then
apply plugin "shadow"
and somewhere in the settings
Main-Class: ...
.
m
Hmm, I tried that, both trying to build a JAR artifact, and a JavaFX artifact, neither are running on click shrugs
k
Did you add
Kt
to the name of the main class?
m
Nah, according to the TornadoFX tutorial its supposed to know that the MainView of the app starts the application. Thats why I tried using the build-javafx-app artifact first, but nada. But I suppose I could use a main function as a shim to at least see if it will build. If that works, then I guess ill just do it that way. I looked on TornadoFX' guide for building the app into a jar but couldn't find it
k
Well in the end you do need a jar file with a manifest that points to a file with a
main
in it, you can check if that's the case.
m
ah kk, soooo main function it is then! I'm new to programming and only just learned the basics of Kotlin, needless to say, going from zero to runnable app has involved lots of: while (app = no) {bang head on wall} loops lol. Thanks for the help!
k
I know I was really frustrated about that too! If you just want to get something running I can recommend the
application
plugin.
m
I think I included that in gradle as part of setting up tornadofx: apply plugin: 'application' How might that help?