hum. what you’re doing now it’s updating all jar task to build an uberjar (not sure of what i’m saying…).
My opinion whould be more to tell gradle : ok, the task build will depends of the task uberJar (ie: build will have to run uberJar before executing).
to do so:
tasks.withName("build").dependsOn("uberJar")
(I’m not sure of my code, but it should be something like that: getting the task
build
and adding
uberJar
as a dependent task
j
janvladimirmostert
04/11/2019, 9:53 AM
That sounds logical, will play around a bit, thanks!