# Replacing a task that may have been used by other plugins has been deprecated

**URL:** <https://discuss.gradle.org/t/replacing-a-task-that-may-have-been-used-by-other-plugins-has-been-deprecated/30652>\
**Category:** Help/Discuss\
**Created:** [February 20, 2019, 4:22am UTC](https://discuss.gradle.org/t/replacing-a-task-that-may-have-been-used-by-other-plugins-has-been-deprecated/30652 "2019-02-20T04:22:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davejcurry](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@davejcurry](https://discuss.gradle.org/u/davejcurry)\
**Post date:** [February 20, 2019, 4:22am UTC](https://discuss.gradle.org/t/replacing-a-task-that-may-have-been-used-by-other-plugins-has-been-deprecated/30652/1 "2019-02-20T04:22:14Z")

</div>

Hi,

I’ve just upgraded to Gradle 5 (previously using Gradle 4.9) and after fixing all the deprecations from 4-\>5, I now get a warning about 6:

Replacing a task that may have been used by other plugins has been deprecated.

The thing is, we replace the flyway plugin’s “flywayClean” task to ensure that it CANNOT be run (since this is a very destructive command)…

Is there an alternative this, so that we can ensure that developers cannot run gradle flywayClean?
