How can I include a Sibling Project in my Gradle Project?
Asked Answered
G

1

7

I have two Gradle projects with the following directory structure:

/baseDir
  /first
  /first/build.gradle
  /second 
  /second/build.gradle

Both firstand secondare on the same hierarchy. From the Gradle User Guide I found only a way to include sub projects. This is not the case here.

How can I include sibling Project second in project first?

Gilbertina answered 7/2, 2015 at 15:50 Comment(0)
M
10

Try to use a settings.gradle with the following content:

 includeFlat "second"
Mistook answered 7/2, 2015 at 16:2 Comment(3)
Can you specify where the settings.gradle goes?Lysozyme
The settings.gradle goes in your root project directory. What would be baseDir above.Geode
Thanks man, I have spent my entire day scratching my head to get it to work. It really helped.Morphine

© 2022 - 2024 — McMap. All rights reserved.