title: Multiple configurations for a task in my build.gradle
body: <p>I'm using <a href="http://openbakery.org/gradle.php" rel="nofollow">this</a> awesome Gradle plugin to compile my iOS projet.</p>
  
  <p>According to the documentation my build.gradle looks like this :</p>
  
  <pre><code>buildscript {
    repositories {
      maven {
        url('http://openbakery.org/repository/')
      }
      mavenCentral()
    }
    dependencies {
      classpath group: 'org.openbakery', name: 'xcodePlugin', version: '0.9.+'
    }
  }
  apply plugin: 'xcode'
  
  task wrapper(type: Wrapper) {
    gradleVersion = '1.12'
  }
  
  
  xcodebuild {
    workspace = 'WORKSPACE'
    sdk = 'iphoneos'
    target = 'TARGET'
  
    signing {
      mobileProvisionURI = 'URI'
      certificateURI = 'URI'
      certificatePassword = 'PASSWORD'
    }
    scheme = 'SCHEME'
    configuration = 'CONFIGURATION'
  }
  </code></pre>
  
  <p>How can I manage multiple configurations for my xcodebuild task ?
  I would like something like </p>
  
  <pre><code>...
  xcodebuild-staging {
        workspace = 'STAGING_WORKSPACE'
        sdk = 'iphoneos'
        target = 'STAGING_TARGET'
  
        signing {
          mobileProvisionURI = 'URI'
          certificateURI = 'URI'
          certificatePassword = 'STAGING_PASSWORD'
        }
        scheme = 'STAGING_SCHEME'
        configuration = 'STAGING_CONFIGURATION'
      }
  
  xcodebuild-production {
        workspace = 'PRODUCTION_WORKSPACE'
        sdk = 'iphoneos'
        target = 'PRODUCTION_TARGET'
  
        signing {
          mobileProvisionURI = 'PRODUCTION_URI'
          certificateURI = 'PRODUCTION_URI'
          certificatePassword = 'PRODUCTION_PASSWORD'
        }
        scheme = 'PRODUCTION_SCHEME'
        configuration = 'PRODUCTION_CONFIGURATION'
      }
  ...
  </code></pre>
  
  <p>I tried multiple things : create a new task that calls xcodebuild.execute() or extend xcodebuild. None of them worked like I wanted to.
  I ended having different build.gradle files...</p>
  
  <p>Do you know how to do that ?</p>