Over week I’m trying to understand how Gradle works! A lot of solutions in internet and most of them doesn’t work, I cannot repeat them.
I want just to create uber jar. I found plugin
I repeated just as written there
put in code
println '!!! SHADOW JAR’
baseName = ‘shadow’
This task is mentioned on configuration stage. But it never called when I run gradle build. Why?
Should I set something like ‘build dependsOn shadowJar’ ? Or what way I have to run this task during build task?
Maybe I have to add something like
after configuration block?
Thanks in advance!