Hi All, I have two projects - project A and project B as part of a multi project build. project B has dependency on project A.
If the build is happening from the root project , I need to have compile project dependency i.e. compile project(":A") If the build is happening from the sub project B, I need to have normal dependency .i.e. compile “groupid:A”
To have this sort of dynamic nature of dependency , I need to first know whether the build is executing from root or from the sub project.
Can I use something like project.buildDir == currentDir to identify that I am building at sub project level ?
Thanks as usual for the brilliant support.