Skip to content

Instantly share code, notes, and snippets.

@SoltauFintel
Created March 17, 2018 13:01
Show Gist options
  • Save SoltauFintel/d468ae09b18dfa8cabb23a0e9043ecc8 to your computer and use it in GitHub Desktop.
Save SoltauFintel/d468ae09b18dfa8cabb23a0e9043ecc8 to your computer and use it in GitHub Desktop.
Classpath too long problem with Gradle
startScripts {
doLast { // Remove too-long-classpath and use wildcard (works for Java 6 and above only)
windowsScript.text = windowsScript.text.replaceAll('set CLASSPATH=.*', 'set CLASSPATH=.;%APP_HOME%/lib/*')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment