Added gradle configuration and sanity check method for EJB