ANt under 2026.2.2

Answered

I have upgraded my Idea to 2026.2.2.  My ANT project no longer compiles as kotlin-ant.jar is missing.  I can not find it anywhere.  Has ANT support been dropped?

Can I use a file from version 2025.2.63 CE?

Thanks

0
2 comments
Hi! Yes, Ant support was dropped - a deprecation warning appeared in Kotlin 2.2.0 and support was removed in Kotlin 2.3.0. See the Kotlin 2.3.0 compatibility guide, section "Remove support for Ant" (https://kotlinlang.org/docs/compatibility-guide-23.html#remove-support-for-ant)
IDEA 2026.2 bundles Kotlin 2.4, and 2025.2 bundled 2.2.x - that's why the jar is gone after the upgrade.
Unfortunately, copying kotlin-ant.jar from the older install won't help: it only works with the compiler of its own version, not with 2.4.

The recommended path is Gradle or Maven. If you'd rather keep your Ant build, you can call the kotlinc compiler from Ant via <exec> or <java> and that keeps you on current Kotlin versions.

 Sorry for the inconvenience!
0

OK thanks, I have a Gradle build as well however I am now fighting debugging under 2026.2.2.  I will raise this as a separate post.

0

Please sign in to leave a comment.