Task updateEndpoints instead of using 'application' plugin