# Side Quest: How Gradle Is Removing Ant

DevFeed: [Side Quest: How Gradle Is Removing Ant](<https://devfeed.tech/articles/side-quest-how-gradle-is-removing-ant-109457.md>)

Original publisher: [Read original article](<https://blog.gradle.org/side-quest-removing-ant>)

Author: Laura Kassovic

Published: 2026-10-29T04:00:00Z

Content type: article

Language: en

Sources: [Gradle](<https://devfeed.tech/sources/the-gradle-blog.md>)

Topics: [Gradle](<https://devfeed.tech/topics/gradle.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [Hackathon](<https://devfeed.tech/topics/hackathon.md>)

Tags: [built-in](<https://devfeed.tech/tags/built-in.md>), [cost](<https://devfeed.tech/tags/cost.md>), [days](<https://devfeed.tech/tags/days.md>), [deprecation](<https://devfeed.tech/tags/deprecation.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [fast](<https://devfeed.tech/tags/fast.md>), [flexible](<https://devfeed.tech/tags/flexible.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [guide](<https://devfeed.tech/tags/guide.md>), [hackathon](<https://devfeed.tech/tags/hackathon.md>), [migration](<https://devfeed.tech/tags/migration.md>), [native](<https://devfeed.tech/tags/native.md>), [need](<https://devfeed.tech/tags/need.md>), [october](<https://devfeed.tech/tags/october.md>), [team](<https://devfeed.tech/tags/team.md>)

## AI overview

Gradle 9.9.0 deprecates its built-in Ant API, with removal and the end of Ant classes on build script classpaths planned for Gradle 10. Ant currently ships with every Gradle distribution; the article cites Configuration Cache incompatibility, Groovy coupling, and maintenance effort as costs. Builds that never call Ant or import its classes need no changes. Others can use Gradle equivalents, invoke tools directly, replace supported filters with `filter(Transformer)`, add Ant to build logic, or run Ant in a separate process. Migration details matter: Gradle `Copy` copies files regardless of destination timestamps, `Exec` fails on nonzero exit by default, and declared task inputs and outputs enable caching. The proposed filter replacement works line by line and has limits for multiline tokens and filters such as `HeadFilter` or `TailFilter`. Gradle's own Ant-backed PMD, CodeNarc, and Checkstyle plugins are separate cleanup work, not tied to Gradle 10.

## Source excerpt

In October, the Gradle team spent a week together in Istanbul, and one of those days was a hackathon. One group picked a side quest with a deceptively short description: remove Ant from the Gradle distribution. Then we looked at gradle/gradle and we counted. Ant turned out to back 58 imports across 12 different Gradle features. So "remove Ant" became a deprecation in Gradle 9.9.0, a removal planned for Gradle 10, and a long new section in our upgrade guide. TL;DR: Gradle 9.9.0 deprecates the built-in Ant integration, and we plan to remove it in Gradle 10. Gradle 10 also stops putting Ant classes on your build script classpath. Why: a modern Gradle build shouldn't need Ant, and carrying it holds Gradle back. If your build calls ant, the migration section covers how to move off it. Gradle's own internal Ant usage, like the PMD, CodeNarc, and Checkstyle plugins, goes away separately and isn't tied to Gradle 10. Why is Gradle removing Ant? Gradle's Ant integration was largely about ease of migration. If your build was in Ant, you could bring it into Gradle and move it over piece by piece. That isn't really a concern anymore. We've asked whether Gradle should keep its Ant support for years, and this deprecation is our answer. A proper Gradle build shouldn't need Ant for anything, and if we spot Ant in a build today, we recommend moving off it. Where does Ant fit in "fast, flexible, scalable, comprehensible"? It doesn't. We judge features against what Gradle is supposed to be, and native Ant integration isn't on that list. Our job is to give you a platform where you can integrate Ant if you need it. The migration paths below do exactly that. What does keeping Ant cost? Ant ships in every Gradle distribution, whether your build uses it or not. It sits in the Gradle API JAR and on your build script classpath. When you run gradle --version, Gradle prints the Ant version next to its own: ------------------------------------------------------------ Gradle 9.8.2 ---------------