Sharing ivy configurations

I support several projects supported by ivy configurations. Many configurations overlap, for example:

  • general build configurations (pmd, findbugs);
  • dependency groups (spring);

Is there a way to import these dependencies, referencing the general configuration?


NB Please do not offer Maven as I know about this, but this is not an option for these specific projects.

+3
source share
2 answers

include do what you need, or is the problem more complicated?

From the documentation:

<ivy-module version="1.0">
  <info organisation="myorg"
         module="mymodule"/>
  <configurations>
    <include file="path/to/included-configurations.xml"/>
    <conf name="conf3"/>
  </configurations>
  <dependencies>
    <dependency name="mymodule1" rev="1.0"/>
    <dependency name="mymodule2" rev="2.0" conf="conf2,conf3->*"/>
  </dependencies>
</ivy-module>

with include-configurations.xml as follows:

<configurations defaultconfmapping="*->@">
  <conf name="conf1" visibility="public"/>
  <conf name="conf2" visibility="private"/>
</configurations>

: , . , , , .

, script ?

+2

, , svn:externals ( Subversion), Ivy.

Subversion config svn:externals .

Google Code:

0

Source: https://habr.com/ru/post/1713212/


All Articles