https://kotlinlang.org logo
#random
Title
e

elect

09/08/2017, 8:32 AM
I'm having some issue with creating a fat jar, I've been laways using the shadow plugin, until few days ago never had problems. But now when I use the fat jar in another project, one of its dependency seems to be old and missing some newer methods (I get
NoSuchMethod
exc on some last methods I just wrote). Double checked this dependency commit (because I'm including it with jitpack) and everything looks ok. I also tried to create the fat jar manually in intellij, nothing. Has anyone ever encountered something similar?
k

karelpeeters

09/08/2017, 8:47 AM
Check out the application plugin, I think it can also build a fat jar and I've hd a lot less problems with it in the past.
e

elect

09/08/2017, 9:15 AM
ok, added, what is the right task,
application/run
?
k

karelpeeters

09/08/2017, 9:21 AM
No, that actually runs your main method. I'll see if I can find it.
Hmm
distZip
might work, I'm sure actually. Maybe I'm mixing things up.
e

elect

09/08/2017, 9:33 AM
it seems like
application
doesnt build fat-jars, https://stackoverflow.com/a/21743527/1047713
k

karelpeeters

09/08/2017, 9:34 AM
I'm sorry for wasting you time then ☺️
What do you need a fat jar for?