We have a multi-module build setup (about 60 projects), but our library dependency management is very unsophisticated. I’d like to simplify and make it more flexible wrt future library upgrades.
For example, we have multiple projects defined with the following style dependencies (in each project build.gradle):
compile ' lib:spring-3.1.1/org.springframework.aop-3.1.1.RELEASE' compile ' lib:spring-3.1.1/org.springframework.asm-3.1.1.RELEASE' compile ' lib:spring-3.1.1/org.springframework.aspects-3.1.1.RELEASE' compile ' lib:spring-3.1.1/org.springframework.beans-3.1.1.RELEASE' compile ' lib:spring-3.1.1/org.springframework.context-3.1.1.RELEASE'
Its a longer list in reality! We are using flat file repositories.
I would like to change this to a single dependency declaration and separately define this as a collection of jars in the top level build.gradle file or somewhere similar, a bit like a group of external dependencies?
I have seen brief mentions of dependencies.gradle where this might be defined (?), but have not found any examples of usage.
Any pointers much appreciated.