I am trying to do something where I’d like to know the proper “gradleonic” (gradley, gradlesque,…?) way to do it before I proceed. Once I know that I suspect I can figure the rest out on the own from the docs.
Background: I am converting a fairly old java desktop project from ant to gradle, and for now am mostly just trying to get everything to work.
What I’d like to do is create a zipped distribution that contains a fat-jar and then a few other directories and files. I can build the fat jar fine. What I don’t know is how best to assemble it with the other things and create the distribution. I think I could either (1) create a new task that just does everything I want by hand, or (2) use the distribution plugin and make modifications to that. I feel like I should do (2) but I’m not sure how to stop a distribution from having a bin / lib layout and execution scripts etc. I just want the fat jar and a few other file and folders.
Here is the build script with the issue:
Any other comments on the style of the script would be most welcome.
I hope this is a legit question relative to the forum guidelines. Thanks in advance,