Gradle, Cucumber and Windows command length

I have been using the Gradle Util Plugin to overcome the Windows command execution error because of limitation to command line length greater than 32 and this seems to be working for build, bootRun and test tasks, however, for my cucumber task

 task cucumber() {
    dependsOn assemble, compileTestJava
    doLast {
        javaexec {
            main = "org.junit.runner.JUnitCore"
            classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
            args = ['io.biomex.spog.steps.RunCukesTest']

as you can see the classpath is generated using the various sourceSets which result in the Windows command exceeding the length limitation. Can anyone advise how I can change the above task to utilize the Manifest jar created by the util plugin or a provide an alternative solution?