The last version of my app was built with Gradle 7.2.0 and the minification was running fine. Forward a few months, I am trying to build the same application with the same libraries with the same proguard rules as before and my build run indefinitely on the task "minifyReleaseWithR8". I've let it run a couple hours on 4gigs of ram.
Since I don't get any error or logs, I'm not quite sure how I should go about troubleshooting this issue.
I tried to find some answers about this but all I find is build optimization tips.
I also tried to add -keep to all classes of my project just to see if I could fix it by removing one at a time.It didn't work even with the -keep.
This turned out to be a duplicate of https://issuetracker.google.com/304746905.
We have also fixed another issue where R8 did not terminate, https://issuetracker.google.com/307761442.
If anybody runs into R8 not terminating please check out these two issues.