EJB remote interface (jitpack?)

when an Enterprise Application is built by Netbeans to contain a remote interface the library, JAR, for the remote interface, is packaged in the EAR.

How is this represented in Gradle?

I’ve only ever used “root” type projects, but am aware of jitpack – this would be a reasonable usage of jitpack?