Hello. When I compile my project, resources are put in the root of the generated artifact. How can I put it in another folder in the jar like
I tried to rename the
build/resources/main directory between
shadowJar (it does not work with the
jar task too) without success.
Any idea ?
Just put them in
I would like to to dit without adding a new folder because this directory could be renamed between different builds.
I’d advise against copying from
src/main/resources into the
assets folder as this would fail the Principal of Least Surprise. So perhaps use a different folder(s). Eg: