I can maybe help out as this blocks my pr too. Looking to move build to use detekt gradle plugin but because of the way gradle works, it's a bit slower and more memory intense. Circleci keeps killing my builds too.
Let me know what u.kight be able to assist with here.