Run Ant script from Gradle

后端 未结 2 1986
清酒与你
清酒与你 2021-01-15 13:16

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         


        
2条回答
  •  一生所求
    2021-01-15 13:28

    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

提交回复
热议问题