There are multiple posts (old and new) with instructions on how to generate a fat jar, this is, a jar file for your application
containing also your application's dependencies. Most solutions I have tried did not work for me, even in a simple Hello World
java application, but I have found one that seems to work as expected.
Here it is: