Jacoco Report - Filter Class from a list of JAR archive

Hello All,

I wanted to generate Code Coverage for my project using Jacoco, but I am not able to filter the classess inside a a JAR archive recursively. I have several JAR archive inside a folder in which I wanted to filter only those classess matching a pattern.

JacocoReport Task accept the ‘classDirectories’ path as FileTree, I did tried for a single JAR by applying filter using zipTree it works perfect, but how do I do for several JAR inside a folder.