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?

Thanks
Mathias Kalb


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to