On 04/01/2011, at 9:09 PM, Mathias Kalb wrote:

> Hi,
> 
> I read an article about gradle at the german "Javamagazin" and I find it very 
> interesting.
> Now I am trying to use gradle for a webproject with two JARs and many WARs. 
> And I have some questions.
> This is the first one:
> 
> I have a dependency to log4j.
> 
> dependencies {
>    compile group: 'log4j', name: 'log4j', version: '1.2.+'
> }
> 
> The log4j has an optional dependency to javax.mail.
> 
> ivy-1.2.16.xml
> <dependency org="javax.mail" name="mail" rev="1.4.1" force="true" 
> conf="optional->compile(*),master(*)"/>
> 
> I defined a runtime dependency, because we need the mail.
> 
> dependencies {
>    compile group: 'log4j', name: 'log4j', version: '1.2.+'
>    runtime group: 'javax.mail', name: 'mail', version: '1.+'
> }
> 
> I do not want to define the version ('1.+'). But without the version I get an 
> error.
> 
> Is it possible to use the version which is defined by log4j?

Not yet. Could you add a JIRA issue for this?


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz

Reply via email to