added licenses, moved dependencies to gradle