Help with accessing resource form Checkstyle plugin

I’m trying to extend the Checkstyle plugin with HTML report generation, see my work-in-progress at [1]. In order to do so, I need to transform the XML report via an XSL to HTML. I’d like to bundle that XSL file as a resource with the gradle-code-quality JAR. But no matter what I do, I’m unable to make the ant.xslt task find the XSL resource [2]. I’ve added the XSL in multiple places, and tried the various attributes to javaresource, still no luck.

Any hint how to achieve that?



I’ve documented the answer here.

My PR has been pending for more than 2 months now. Would somebody kindly take the time to review it: