prezi / pride

Manages a pride of Gradle modules
Other
71 stars 13 forks source link

Caching policy is ignored when resolving transitive dependencies #95

Closed lptr closed 10 years ago

lptr commented 10 years ago

The Gradle manual recommends changing dependency caching like this:

configurations.all {
    resolutionStrategy.cacheDynamicVersionsFor 10, 'minutes'
}

However, this doesn't apply to the detached configurations Pride creates when resolving transitive dependencies, and this can mess with the whole resolution logic.

lptr commented 10 years ago

A solution could be to create a proper project configuration instead of a detached one, maybe suffixing the name of the target configuration with _pride.

lptr commented 10 years ago

A disadvantage of this solution is that there could be unintended consequences of build authors not expecting Pride to create its own configurations. An advantage is that this way the user can get some feedback about which dynamic configurations Pride is currently trying to resolve.

lptr commented 10 years ago

Or we could use Configuration.copy().

lptr commented 10 years ago

Configuration.copy() is great, because that way we get all the benefits: