Switch to localGroovy instead of dependency