Updating to gradle shadow and fixed codenarc violations