ant support missing from 2026.2.2
I have a project that is built using ANT. I have just upgraded from 2025.2 to 2026.2.2 and the file kotlin-ant.jar has disappeared. I have the line:
<typedef resource="org/jetbrains/kotlin/ant/antlib.xml" classpath="c:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2026.2.2\plugins\Kotlin\kotlinc/lib/kotlin-ant.jar"/>
in my build.xml file. Is this still needed?
If so where is the jar file?
Commenting it out gives me an error:
BUILD FAILED
D:\F\xxxxxxxxxxxxx\src\build.xml:420: The following error occurred while executing this line:
D:\F\xxxxxxxxxxxxx\src\build.xml:139: The following error occurred while executing this line:
D:\F\xxxxxxxxxxxxx\src\build.xml:239: The following error occurred while executing this line:
D:\F\xxxxxxxxxxxxx\src\build.xml:254: Problem: failed to create task or type kotlinc
Please sign in to leave a comment.
Ant reads the typedef to register the task name. Once it is gone, the first
kotlincelement in your build has nothing behind it, and Ant reports "failed to create task or type kotlinc" at build.xml:254.It is because of the removal of Kotlin's Ant support. It was deprecated in Kotlin 2.2.0 (KT-73116) and removed in Kotlin 2.3.0 (KT-75875).
kotlin-ant.jarno longer exists in the Kotlin compiler distribution, so there is no path left to point the classpath at. The compatibility guide records the change under Remove support for Ant. IntelliJ IDEA 2026.2.2 bundles Kotlin 2.3.20, and 2026.1 already bundled 2.3.10. You upgraded from 2025.2 and skipped 2026.1, so the change reached you in one step. IntelliJ IDEA's own Ant support is not affected. Only Kotlin's Ant tasks are gone.The supported options from here are Gradle or Maven, or the Build Tools API if you want to drive the compiler from your own build system.