I am trying to make my builds faster by distributing Gradle tasks (like gradle test --tests subproject1 on VM1 and gradle test --tests subproject2 on VM2) across VMs.
I want the daemon to be persisted for the performance benefit.
I was thinking of starting Daemons in the foreground, so the container doesn’t quit after it is done, and then using the Gradle Tooling API to distribute tasks to the entire set of daemons I have running across all my VMs.
I can’t be the first to have done this. Is there some code/tool that I can look at for reference as I build this?