In my build I have a task that forks a new Java process and extracts some class informations from other sub projects built in former step. Because I have about 90 subprojects with a lot of 3rd party dependencies the classpath for this new Java process becomes huge (not at last because the path to the 3rd party jars residing in Gradle cache makes the whole thing exploding).
Is there a way to not use the Windows environment for setting the classpath on the new Java process?