Michael
Michael

Reputation: 33317

How can I include a Sibling Project in my Gradle Project?

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?

Upvotes: 7

Views: 2946

Answers (1)

user2909133
user2909133

Reputation:

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

 includeFlat "second"

Upvotes: 11

Related Questions