I\'m trying to run ant script from Gradle, but I have this exception:
Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found
This is just repost from comment, which solved my problem: Thanks to Opal
Running gradle without net connection may not be a very good idea. Nevertheless if You have the jar You need in the local directory, just add id to script dependencies using file dependencies. See: http://www.gradle.org/docs/current/userguide/dependency_management.html#file-dependencies from Opal