grails / grails-forge

This is Grails project creator. Grails projects may be created using the browser interface, Command Line, or via CURL.
Apache License 2.0
3 stars 8 forks source link

gradle.properties contains org.gradle.jvmArgs instead of org.gradle.jvmargs #205

Closed matthijsbierman closed 10 months ago

matthijsbierman commented 11 months ago

Description

A newly generated Grails project does not correctly set the JVM argument -Xmx1024M. Therefore it defaults to 512MB instead of 1GB, causing an OutOfMemoryError on projects that need more memory to build.

Steps to Reproduce

  1. Create a new Grails 6.0.0 project with grails create-app new

Expected Behaviour

The gradle.properties file should contain:

org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M

Actual Behaviour

In gradle.properties the wrong property is set:

org.gradle.jvmArgs=-Dfile.encoding=UTF-8 -Xmx1024M

Note the uppercase 'A'.

matthijsbierman commented 11 months ago

Relevant Gradle docs: https://docs.gradle.org/current/userguide/config_gradle.html#sec:configuring_jvm_memory