Moving files in gradle

Hi.

There is a Copy task that allows copying files and optionally renaming them in the process. But is there something in Gradle to actually move files from one place into another? I can copy and delete source files, but that’s slower. I’ve tried File.renameTo but it does not overwrite file and fails to create folders if necessary. Other options I see, like executing shell script or calling Java’s Files.move, look a bit cumbersome to use for such a simple task.

Sure, there is ant.move but I wonder, is there is something in Gradle itself?