Getting started with Ant
The Ant plugin is not bundled with IntelliJ IDEA. You can install Ant from JetBrains Marketplace as described in Install plugins.
The latest compatible version of IntelliJ IDEA is 2023.2.
You can find the Ant documentation in earlier versions of IntelliJ IDEA Help.