Shadowjar's docs say to do this:
shadowJar {
configurations = [project.configurations.compileClasspath]
}
This appears to be in Groovy. If I run this in my Kotlin based gradle project, I get the following error:
Type mismatch:
inferred type is
Array<NamedDomainObjectProvider<Configuration>>, but
(Mutable)List<FileCollection!>! was expected
How can I perform this in Kotlin?