How to use custom gradle templates from 5.5.1p1?

How to use custom gradle templates from 5.5.1p1? Cant find any documentation on this.

I think you can place your build.gradle file under Assets/Plugins/Android and it will get picked up by Unity.