One way to get around the Windows command line length limit is to create a jar that just has a manifest with a Class-Path
attribute and main class.
There’s some info here: http://stackoverflow.com/questions/22659463/add-classpath-in-manifest-using-gradle