How to create JPA entity in gradle project? is it possible?

How to create JPA entity in gradle project?? is it possible?