Shift memory setting to gradlew