Repository from Maven (jar file) has Ant task that I want to include int Gradle build

Hello, I want to use org.apache.axis2 library, so I have: dependencies {

compile group: ‘org.apache.axis2’, name: ‘axis2’, version:‘1.6.2’ } The downloaded file (located in a folder:


) implements an Ant Task (


) which I want to use back in a Gradle. To use this task I need to explicitly provide a link to some libraries, as described here: And now I have a question, does Gradle provide any help with such case? My possible solution: I resign from maven dependencies and include the provided files directly into my project (so actually whole Maven action is unnecessary)

See section 17.1.1. You can call ant.taskdef to run custom ant tasks.