How can I use an Ant taskdef that depends on lib imported by ivy

前端 未结 3 1140
Happy的楠姐
Happy的楠姐 2021-01-25 11:39

I\'ve created a taskdef in my build.xml that depends on a class that resides in a jar imported by Ivy.

I\'d like to understand if it\'s possible in any way, given the fa

3条回答
  •  清酒与你
    2021-01-25 12:23

    The following is an example that uses ivy to retrieve the groovy task dependencies. As stated by David the trick is to call taskdef after the ivy has resolved the dependencies and created a path reference:

    • Harsh Jarring with ivy

    The following is more normal example build

    • integrating JaCoCo in sonar using Ant

    I create configurations to match the build classpaths I require. Pay special attention to the mappings for the "build" configuration. This is how the jars associated with ANT tasks can be kept separate to the jars used for compilation.

    Bootstrapping ivy

    Reaction to your chicken and egg comment.

    I use ivy to manage all build dependencies. The following target ensures that ivy is installed on my build machine.

    
    
    
        
        
        
    
    

提交回复
热议问题