After updating from 5.17.1 to 6.0.4 I started having OOM when doing a Gradle sync for the second time on the same daemon.
Even the first sync seems to take longer than usual.
I ran the hprof through Eclipse Memory Analyzer:

The culprit seems to be related with GitRatchetGradle and VisitableURLClassLoader.
I'm not sure if there is any more useful info that can be extracted from the memory analyzer. Let me know what can I do to help.
Gradle version: 7.3/7.3.1
Spotless version: 6.0.4
OS: macOS 11.6
After updating from 5.17.1 to 6.0.4 I started having OOM when doing a Gradle sync for the second time on the same daemon.
Even the first sync seems to take longer than usual.
I ran the hprof through Eclipse Memory Analyzer:

The culprit seems to be related with
GitRatchetGradleandVisitableURLClassLoader.I'm not sure if there is any more useful info that can be extracted from the memory analyzer. Let me know what can I do to help.
Gradle version: 7.3/7.3.1
Spotless version: 6.0.4
OS: macOS 11.6