what does `with(tasks["jar"] as CopySpec)` achieve...
# gradle
n
what does
with(tasks["jar"] as CopySpec)
achieve?
c
Which part do you need explained?
n
Oh wait I get it...
Any idea why I'm getting the following
org.gradle.api.internal.initialization.DefaultClassLoaderScope@31aec3e7 must be locked before it can be used to compute a classpath!
c
n
I saw that but I've set org.gradle.configureondemand=false
Its this fatJar task that seems to be causing it
c
Yep, that's a probability. Is there any particular reason you do not want to use a plugin?
n
no reason. Is there an appropriate plugin I can use?
Thanks for your help @Czar I have used shadowJar and it seems to be working very well.
c
Yes, sorry, only now got the notification. You're welcome! Glad it works for you now 🙂