runningcode / gradle-doctor

The right prescription for your Gradle build.
http://runningcode.github.io/gradle-doctor
Apache License 2.0
723 stars 46 forks source link

Notify when individual jvmargs options are overridden, without restating Gradle's defaults #217

Open 3flex opened 2 years ago

3flex commented 2 years ago

Basically, notify when this occurs: https://github.com/gradle/gradle/issues/19750

This happens when someone sets, for example, org.gradle.jvmargs=-Xmx4g. This has the unfortunate effect of replacing the entire jvmargs string applied by Gradle, instead of only overriding the heap size, but leaving everything else alone.

Until there's a fix in Gradle core (which hasn't been scheduled) I think it would be great to identify & expose in this plugin.

runningcode commented 1 year ago

How do you suggest that these have been overridden accidentally?