Why does Gradle ignore dependencies to ant?

The package org.apache.ant:ant includes more than ant tasks. it comes with some classes (such as org.apache.tools.tar.TarOutputStream) used by some library for package exporting stuff.

But if I include this dependency in my build.gradle:

compile (‘org.apache.ant:ant:1.8.0’)

Gradle quietly obvious it! Why?

Gradle shouldn’t ignore this dependency. It should put it on the compile class path (not the build script class path) as requested. If not, there might be something wrong with your build script.