Is there a way to define the DEFAULT_JVM_OPTS put in the wrapper scripts from within the Wrapper task in the build file?


#1

I know I could just copy/filter gradlew and gradlew.bat, but that seems unnatural. Since these get re-generated every time the wrapper task is run (which admittedly isn’t all that often), it’d be nice to have this information added automatically.


(Peter Niederwieser) #2

I’d rather set JVM options in ‘gradle.properties’. See 15.1. Configuring the build environment via gradle.properties in the user guide.