Is it possible to for an imported ant target to overwrite a gradle task?

In this specific case we have a clean task provided by the java plugin but our imported ant script also as a clean target.

No, it isn’t possible. The Ant import feature wasn’t really designed to mix and match between Ant targets and Gradle plugins in the same project.