buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schröder ...@blau.de>
Subject Re: 'provided' dependencies
Date Tue, 26 Jan 2010 09:10:55 GMT
since buildr does not have a real dependency management mechanism, you will have to do this
yourself.

just do not package your 'provided' dependencies.  you can do this by simple array-math:


repositories.remote << "http://www.ibiblio.org/maven2/"

AXIS2 = 'axis2:axis2:jar:1.0'
HIBERNATE = 'hibernate:hibernate-entitymanager:jar:3.1beta1'
LANG = 'commons-lang:commons-lang:jar:2.4'

PROVIDED = [LANG]

ALL = [AXIS2, HIBERNATE, LANG]

define "testo", :version=>"1.0.0" do
  compile.with ALL
  package(:war).with(:libs => ALL - PROVIDED)
end




Am 25.01.2010 um 17:16 schrieb Maas, Peter:

> Hi all,
> 
> I'm looking for a way to specify project dependencies which are going to 
> be 'provided' by the host environments.  In  maven2  I would  put the 
> scope of the dependency on 'provided'.
> 
> I've search the manual and grepped through the sources but couldn't 
> really find something similar...  did I miss something?
> 
> kind regards,
> 
> Peter Maas


Mime
View raw message