# To build different target from multi-project which should has different includes in settings.gradle

**URL:** <https://discuss.gradle.org/t/to-build-different-target-from-multi-project-which-should-has-different-includes-in-settings-gradle/28677>\
**Category:** Help/Discuss\
**Created:** [September 19, 2018, 2:10am UTC](https://discuss.gradle.org/t/to-build-different-target-from-multi-project-which-should-has-different-includes-in-settings-gradle/28677 "2018-09-19T02:10:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuzhidi](https://avatars.discourse-cdn.com/v4/letter/y/a9adbd/32.png) [@yuzhidi](https://discuss.gradle.org/u/yuzhidi)\
**Post date:** [September 19, 2018, 2:10am UTC](https://discuss.gradle.org/t/to-build-different-target-from-multi-project-which-should-has-different-includes-in-settings-gradle/28677/1 "2018-09-19T02:10:01Z")

</div>

for exmaple,  
there is three sub-project, I call them A, B, C

to build target B  
settings.gradle should be:  
include ‘:A’  
include ‘:B’

to build target C  
settings.gradle should be:  
include ‘:A’  
include ‘:C’

how can I config settings.gradle automatically by add some groovy code in settings or defined two tasks, one is to build target B and the other is to build target C
