https://kotlinlang.org logo
Title
n

nikolaymetchev

11/01/2017, 1:22 PM
what does
with(tasks["jar"] as CopySpec)
achieve?
c

Czar

11/01/2017, 1:40 PM
Which part do you need explained?
n

nikolaymetchev

11/01/2017, 1:59 PM
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

Czar

11/01/2017, 2:08 PM
n

nikolaymetchev

11/01/2017, 2:13 PM
I saw that but I've set org.gradle.configureondemand=false
Its this fatJar task that seems to be causing it
c

Czar

11/01/2017, 2:21 PM
Yep, that's a probability. Is there any particular reason you do not want to use a plugin?
n

nikolaymetchev

11/01/2017, 2:48 PM
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

Czar

11/02/2017, 6:57 AM
Yes, sorry, only now got the notification. You're welcome! Glad it works for you now 🙂