I\'m using Maven and its assembly plugin to build a distribution package of my project like this:
https://github.com/rob19780114/merge-maven-plugin (available on maven central) also seems to do the job. See below for an example configuration
org.zcore.maven
merge-maven-plugin
0.0.3
merge
generate-resources
merge
${build.outputDirectory}/output-file-1
src/main/resources/file1
src/main/resources/file2
${build.outputDirectory}/output-file-2
src/main/resources/file3
src/main/resources/file4