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:

~/.gradle/caches/modules-2/files-2.1/org.apache.axis2/axis2/1.6.2/f5eced8de34553af90b8ecb231b59a402870fb1b/axis2-1.6.2.jar

) implements an Ant Task (

org.apache.axis2.tool.ant.AntCodegenTask

) 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: http://axis.apache.org/axis2/java/core/tools/CodegenToolReference.html 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.