I started playing around with 2.5 rc-1 yesterday and combed through the documentation, and for the life of me, I couldn’t figure out how given the options of ResolutionStrategy, using “substitute project with project” or “substitute project with module” to make this work for our case, which is one of using a pre-built binary from a local directory hierarchy in place of a project dependency. First of all, “module” is not well-documented anywhere that I looked. Second, it appears only to handle group,name, version. I’m guessing that what we want is closer to substitute project with library which isn’t in the API.
I had originally thought that using an artifacts closure with an associated configuration in each project on which we would have a dependency and then using something like this:
substitute project(':core:utilities:utils') with project(path:':core:utilties:utils', configuration: 'archive'),
would be what we might have to do, but given the docs and examples, I’m completely stumped. I understand that I may have to put some custom ResolutionStrategy code in settings.gradle, but I don’t know how to morph a specific binary file to a substitution rule.
I’d appreciate some help here. Thanks.