I’m trying to get the old 4.x tactic to create a fat jar working in 5.0. With the changes to configurations this no longer works. In particular I’d want a Kotlin DSL solution. This is the snippet I’m stuck on:
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
I’ll look into it. Pretty sure I did try that too but will check. What I was hitting was that the configurations were empty. I thought I read something about changes to configurations in light of task lazy loading work. I can’t find that reference now, but I do note the 5.0 broke older versions of the ShadowJar plugin so I feel like this is related.