rest api on jersey and gradle