alexvasilkov / GradleGitDependenciesPlugin

Gradle plugin to add external git repos as project dependencies
Apache License 2.0
105 stars 15 forks source link

Support multi-project builds #18

Open chris13524 opened 3 years ago

chris13524 commented 3 years ago

It doesn't seem like this plugin supports choosing a project inside of a multi-project build.

It does support dir, but it appears this breaks the ability for the project to include another project from the same Git repo.

alexvasilkov commented 3 years ago

Do you need to checkout a single git repo and then add several directories from it as project dependencies? Can you provide more info about your use case please?

odifek commented 3 years ago

I did solve this by including the modules as separate git dependencies.

DearDhruv commented 2 years ago

Any updates on this? I have a library project with lots of modules which need to be imported as needed into the app project. The internal project dependencies are not working when pulled from the git since the app project overrides the library include project path.

DearDhruv commented 2 years ago

Or Did anyone found any magical path which can work on both library projects and app projects?

DearDhruv commented 2 years ago

Archived multi-project import via this path.

include('accelerator')
project(':accelerator').projectDir = file(libPath + "/accelerator")
include('models')
project(':models').projectDir = file(libPath + "/models")

While :accelerator, :models and many other modules are from lib and are under the same lib dir. And lib module includes as include ':accelerator' and on and on...