micronaut-projects / micronaut-core

Micronaut Application Framework
http://micronaut.io
Apache License 2.0
6.05k stars 1.06k forks source link

Apply memory settings to Gradle.properties to workaround sonar failures #7215

Open sdelamo opened 2 years ago

sdelamo commented 2 years ago

Issue description

The static analysis job fails with Metaspace if we do not give Gradle more metaspace memory

We need to add

# For sonarqube
org.gradle.jvmargs=-XX:MaxMetaspaceSize=1g

To gradle.properties for all modules to avoid this

alvarosanchez commented 2 years ago

It doesn't make sense to me having to manually create 70+ PRs to add that property when we can simply change this line to add -Dorg.gradle.jvmargs=... and let it propagate.