Skip to content

Managed dependencies

Adam Wyłuda edited this page Jul 6, 2013 · 2 revisions

There is no thing similar to Maven managed dependencies in Gradle. To solve this we store a map with defined dependency version and configuration as a values and with group and name as a keys. Implementation is composed of two closures: addManaged and addDirect. First adds new entry to the map and second applies it.

Implementation: https://gist.github.com/adamwy/5940135

Example of use: https://gist.github.com/adamwy/5940139

Clone this wiki locally