buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dieter Vrancken <>
Subject dependencies for Buildr modules
Date Fri, 16 Jan 2015 13:13:43 GMT
Hi list,

I was wondering about how to specify dependencies in Buildr modules.

If we look at e.g. the Checkstyle module (addon/buildr/checkstyle.rb),
it lists a bunch of artifacts at the top which are needed for the
module's operation:

    # The specs for requirements
    def dependencies

The same pattern is replicated in a other modules as well. It seems
rather cumbersome to have to hunt down all the appropriate dependencies
and their specific version numbers. Also, in the example above, it is
not really possible to make the checkstyle version a build parameter
because its dependencies might change across versions.

Listing the dependency transitively would solve both my concerns, so I
tried doing the following and it seems to work just fine:

    def dependencies
      Buildr::transitive ''

Is there are a reason this is not done?

One possible reason I can think of is that the transitive method is not
actually documented, but seeing it recommended on this list recently, it
sounds safe enough to start using...


View raw message