# Adding criteria on settings.gradle

**URL:** <https://discuss.gradle.org/t/adding-criteria-on-settings-gradle/3636>\
**Category:** Old Forum Archive\
**Created:** [July 19, 2013, 9:22am UTC](https://discuss.gradle.org/t/adding-criteria-on-settings-gradle/3636 "2013-07-19T09:22:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smurf](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@Smurf](https://discuss.gradle.org/u/Smurf)\
**Post date:** [July 19, 2013, 9:22am UTC](https://discuss.gradle.org/t/adding-criteria-on-settings-gradle/3636/1 "2013-07-19T09:22:00Z")

</div>

Hi

I am working on grails project which uses gradle as the build tool.

In settings.gradle, normally we will list all the projects that has to be build as below:

```gradle
include ':A,:B,:C'

```

If i am doing a build as above , then it build A,B,C If i wanted to do a build for only A and not B, how can we do it? I wanted to pass some param as ‘a’,‘B’, then it builds those two. IF i am giving as all, it builds everything.

Can we give some conditions in settings.gradle. If so, how we go with that.

Thanks Smurf

---

<div class="post-metadata">

**Author:** ![Smurf](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@Smurf](https://discuss.gradle.org/u/Smurf)\
**Post date:** [July 21, 2013, 10:55am UTC](https://discuss.gradle.org/t/adding-criteria-on-settings-gradle/3636/2 "2013-07-21T10:55:00Z")

</div>

Can anyone please let me know, how to do it?
