How can I run a main function with the gradle wrap...
# announcements
c
How can I run a main function with the gradle wrapper?
👍 1
k
Same as in Java simple smile
i
I wonder what would be practical use case for this?
k
Just running your program without having to start an IDE.
👍 3
g
Article is correct, it’s just strange advice in section “What if I don’t want to use gradle, and just java” Instead you can build “distribution” using application plugin, it will generate dir with run script and all required jars. If you add also
shadow
plugin, you can build runnable single-jar app
I wonder what would be practical use case for this?
Any real application need a way to run it. And runnable jar is good way to achieve this, almost like binary, you just need
JRE
to run it