Add ant dependency

Closes #23484.
Closes #23494.