configurations.runtime.files + project dependency

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

configurations.runtime.files + project dependency

Felix Natter
hello,

I use code like this in all projects to gather (references to)
dependencies:
  ext.deps = configurations.runtime.files.collect { "lib/${it.name}" }

This works fine.
However, when my project (e.g. 'freeplane_plugin_formula') has one more
project dependency (to 'freeplane_plugin_script'):

dependencies {
    compile project(':freeplane')
    compile project(':freeplane_plugin_script')
}

Then I get:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/felix/src/freeplane/freeplane_plugin_formula/build.gradle' line: 13

* What went wrong:
A problem occurred evaluating project ':freeplane_plugin_formula'.
> Could not resolve all dependencies for configuration ':freeplane_plugin_formula:runtime'.
   > Received unexpected module descriptor freeplane:freeplane_plugin_script:1.0.1 for dependency freeplane:freeplane_plugin_script:unspecified.
     Required by:
         freeplane:freeplane_plugin_formula:1.0.1

build.gradle:13 is where configurations.runtime.files is evaluated.

I am using gradle 1.5. Please tell me if you need more info.

Many Thanks in Advance!
--
Felix Natter


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: configurations.runtime.files + project dependency

Felix Natter
Felix Natter <[hidden email]> writes:

> hello,
>
> I use code like this in all projects to gather (references to)
> dependencies:
>   ext.deps = configurations.runtime.files.collect { "lib/${it.name}" }
>
> This works fine.
> However, when my project (e.g. 'freeplane_plugin_formula') has one more
> project dependency (to 'freeplane_plugin_script'):
>
> dependencies {
>     compile project(':freeplane')
>     compile project(':freeplane_plugin_script')
> }
>
> Then I get:
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file '/home/felix/src/freeplane/freeplane_plugin_formula/build.gradle' line: 13
>
> * What went wrong:
> A problem occurred evaluating project ':freeplane_plugin_formula'.
>> Could not resolve all dependencies for configuration ':freeplane_plugin_formula:runtime'.
>    > Received unexpected module descriptor freeplane:freeplane_plugin_script:1.0.1 for dependency freeplane:freeplane_plugin_script:unspecified.
>      Required by:
>          freeplane:freeplane_plugin_formula:1.0.1

Ok, sorry for the stupid question: I am requesting
  freeplane:freeplane_plugin_script:unspecified
but freeplane_plugin_script has:
  version='1.0.1'.

=> but how can I specify a versioned project dependency?

Thanks!
--
Felix Natter


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: configurations.runtime.files + project dependency

Schalk Cronjé
This list is dead. You should go ask your question over at
forums.gradle.org.


On 23/12/2014 10:16, Felix Natter wrote:

> Felix Natter <[hidden email]> writes:
>
>> hello,
>>
>> I use code like this in all projects to gather (references to)
>> dependencies:
>>    ext.deps = configurations.runtime.files.collect { "lib/${it.name}" }
>>
>> This works fine.
>> However, when my project (e.g. 'freeplane_plugin_formula') has one more
>> project dependency (to 'freeplane_plugin_script'):
>>
>> dependencies {
>>      compile project(':freeplane')
>>      compile project(':freeplane_plugin_script')
>> }
>>
>> Then I get:
>>
>> FAILURE: Build failed with an exception.
>>
>> * Where:
>> Build file '/home/felix/src/freeplane/freeplane_plugin_formula/build.gradle' line: 13
>>
>> * What went wrong:
>> A problem occurred evaluating project ':freeplane_plugin_formula'.
>>> Could not resolve all dependencies for configuration ':freeplane_plugin_formula:runtime'.
>>     > Received unexpected module descriptor freeplane:freeplane_plugin_script:1.0.1 for dependency freeplane:freeplane_plugin_script:unspecified.
>>       Required by:
>>           freeplane:freeplane_plugin_formula:1.0.1
> Ok, sorry for the stupid question: I am requesting
>    freeplane:freeplane_plugin_script:unspecified
> but freeplane_plugin_script has:
>    version='1.0.1'.
>
> => but how can I specify a versioned project dependency?
>
> Thanks!


--
Schalk W. Cronjé
Twitter / Ello / Toeter : @ysb33r


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: configurations.runtime.files + project dependency

Russel Winder-3
On Tue, 2014-12-23 at 11:52 +0000, Schalk Cronjé wrote:
> This list is dead. You should go ask your question over at
> forums.gradle.org.

Not dead just unfrequented by Gradleware folk. So the advice of goto the
forum is good. ;-)


--
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[hidden email]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [hidden email]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

signature.asc (188 bytes) Download Attachment
Loading...