Here we’re creating a custom configuration to store the necessary Jar files. I’ve set it as not transitive to avoid downloading all dependencies of the Jar, but you might want to download the dependencies too. Then I configured the Jar with the XML files as a dependency for the custom configuration. Finally, I used the configuration so that Gradle downloads the Jar file automatically, and expands it as necessary so we can load the XML files.
Is your Jar file with the XML files public? If you have a Maven group/artifact/version string you can send me, I can try it out over here to see if I can get it to run.
Regarding the JVM processes, unfortunately I have no idea . I don’t think I’ve executed that many processes in parallel before. Perhaps someone from Gradle has done something similar before?
Now I would like to run java program from a directory e.g. com.test.HelloWorldA, com.test.HelloWrorldB. Basically the mainclass name is different for each.
Is is possible to change mainclass name as well in a loop?