Hi, I’ve spent about two hours reading gradle docs and making changes to my build file but I can’t figure this trivial thing out.
// build.gradle.kts
plugins { application }
repositories { ... }
dependencies { ... }
application { mainClass.set("...") }
distributions {
main {
contents {
from("config")
}
}
}
When I run ./gradlew build
I get a zip file with the following content:
app/bin/...
app/lib/...
app/one.json
app/two.json
app/three.json
but what I need is
app/bin/...
app/lib/...
app/config/one.json
app/config/two.json
app/config/three.json
How can I maintain the config
folder?