Adding criteria on settings.gradle


(smurfs.doll) #1

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:

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


(smurfs.doll) #2

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