Created
March 17, 2018 13:01
-
-
Save SoltauFintel/d468ae09b18dfa8cabb23a0e9043ecc8 to your computer and use it in GitHub Desktop.
Classpath too long problem with Gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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