title: Gradle. pass parameters to dependent project build script
body: <p>I have project ("backend") configuration:</p>
  
  <pre><code>dependencies {
      compile project(':model') //I would like to pass some params into this being build.
      ...
  </code></pre>
  
  <p>And other project ("frontend") configuration is very similar:</p>
  
  <pre><code>dependencies {
      compile project(':model') //but from this project I will not pass params.
      ...
  </code></pre>
  
  <p>And when I build the dependant project model- I need to pass a parameter to it's build parameter and do something on condition. So for all projects who needs the sub-projects it will be built according to their needs.</p>
  
  <p>To be more specific: When I build "backtend" - "model"'s project should run some task, but when I build "frontend" I don't.</p>
  
  <p>Is it possible to force clean the sub-project as well?</p>