Cuba core to connect to legacy jboss 5.1

I’m trying to connect Cuba core to our JBoss 5.1 AS using RMI. I’m having trouble getting gradle to build. It dies while trying to find some of the dependencies that jboss-as-client requires. Any help would be appreciated.

Never mind, I figured it out. Thanks!