android - Gradle disable the build of dependency projects -
i have a multi-project gradle project (android) following structure:
root |-proja |-projb |-projc |-...
in specific case, proja
app uses projb
(module). when run build
on proja
, projb
gets built. need perform action on project built (the project original action performed on).
for purpose need somehow name/path of project. need in afterevaluate
step if matters.
example:
gradlew :proja:build // builds , b -> want "proja" gradlew :projb:build // builds b -> want "projb" gradlew :projc:build // builds a, b , c -> want "projc"
i not sure how can achive this, hope of can me.
you can check official doc:
the standard project dependencies supported , makes relevant projects configured. if project has compile dependency on project b building causes configuration of both projects.
however can disable build of dependency projects (but pay attention!)
if don't want depended on projects built when doing partial build. disable build of depended on projects you can run gradle -a option.
example:
gradle -a :proja:build
-a, --no-rebuild
do not rebuild project dependencies.
wiki
Comments
Post a Comment