How to subtract ivy dependency sets

后端 未结 1 1971
慢半拍i
慢半拍i 2021-01-20 23:09

My goal is to demarcate project transitive dependencies into several not crossing sets:

  • system (jars already present in j2ee container; listed manually with explic
相关标签:
1条回答
  • 2021-01-20 23:45

    While provided dependencies exclusion is possible with Maven and Gradle, it seems that currently there is no way to easily achieve it with ivy.

    Update

    In some cases the task can be worked around with intermediate induced module and negative regexp mask:

        <dependency org="com.company" name="root.module" conf="ear" rev="latest.integration">
            <exclude org="^(?!com.company).*$" matcher="regexp"/>
        </dependency>
    

    But we've already moved to Gradle as Ivy seems to be losing momentum.

    0 讨论(0)
提交回复
热议问题