1

I have this question with regards to a gradle multi-module setup:

I have

root project
   build.gradle 
   settings.gradle <-include 'subproject','multimodule'
   multi module project
       build.gradle
       settings.gradle <- include multi1, multi2
       multi1
           build.gradle
       multi2
           build.gradle <- compile project(':multi1')
   subproject
       build.gradle <- How can this reference multi1?
       settings.gradle

Now both subproject and multi2 needs to refer to multi1. multi2 is easily able to refer to multi1. But how do I make subproject refer multi1?

1 Answers1

2

It looks like it is a limitation of Gradle that it does not support multiple root/sub-projects. This is because Gradle does not support the use of multiple settings.gradle files in a project setup. See this question. And this answer from me on a related question.

Community
  • 1
  • 1
HELOX
  • 529
  • 2
  • 13