Remove specific *directories* from JaCoCo report

I’m using JaCoCo Gradle plugin in my project.
Just as an example of the question, most of my code is under package com.me.mysoftware.

I’m using code generator that generate classes under build/generated/java/....../com/me/software/MyGeneratedClass.java

I would like that all of the classes under this generated directory will be excluded from JaCoCo report, but not the entire package (what’s under src/main/...)

How is this possible?