Given this gradle project:
org.mycompany.rootProject
|
|--org.mycompany.subProject0001
| |
| |-src/
| | |
| | |-dist/
| | | |
| | | |-README.MD
| | | |-runSubProject0001.cmd
| | |-main/
| | |-test/
| | |
| |-build.gradle
|
|--org.mycompany.subProject0002
| | |
| | |-dist/
| | | |
| | | |-README.MD
| | | |-runSubProject0002.cmd
| | |-main/
| | |-test/
| | |
| |-build.gradle
| .
| .
| . (goal is keeping going until subproject 1000)
|-build.gradle
|-settings.gradle
What can I do to get README and 'runSubProject' from each subproject and copy into my rootproject (target is '{rootProject}/build/distribution/{subprojectName}/') when I build it?
All my projects use "java-application" plugin.
I was trying to make gradle iterate over each subproject and copy those files into my rootproject, but I have failed.