Creating gradle report

How to create gradle report from a XML.

my project will produce a xml file with list of pass and fail counts… I want to populate a gradle report from this.

Any idea/help.