Add Gradle Doctor plugin
This adds a plugin I came across in a blog post, which provides warnings when the build is misconfigured and has build performance issues.
I followed the suggestions of the plugin, but the only fix is using the parallel GC during build runs.
Setting JAVA_HOME
did not work for me at all, so I disabled that in the configuration.
It seems there is no way for IDEA to pick up the environment variable when calling the build.