HOWTO build remote standalone java client of EJB deployed on JBoss

I am trying to port a standalone java application that is a remote EJB Client. The EJB server is being ported from WebLogic to JBoss EAP.

I am trying to find the way to build this with the minimum possible footprint. I know I must import some client jars from JBoss. I am not finding much explicit guidance on what needs to be imported.

JBoss offers a “quickstart” implemented in terms of Maven. It doesn’t look very minimalist to me. I would expect one jboss naming client jar to build the initial context and then a client jar from my actual EJB.

Are there any gradle examples for building this kind of application?