title: Gradle set property for specific buildType
body: <p>How can I define a property and set it in a specific buildType?</p>
  
  <p>I have already tried this:</p>
  
  <pre><code>android {
    project.ext.set("apis", "[]")
  
    buildTypes {
        release {
        ...
          project.apis = [
                      [
                              name   : "aaaa",
                              apiJson: "aaaa",
                              baseUrl: "aaaa"
                      ],
                      [
                              name   : "bbbb",
                              apiJson: "bbbb",
                              baseUrl: "bbbb"
                      ]
                   ]
        }
  
      debug{
        ...
          project.apis = [
                      [
                              name   : "cccc",
                              apiJson: "cccc",
                              baseUrl: "cccc"
                      ],
                      [
                              name   : "dddd",
                              apiJson: "dddd",
                              baseUrl: "dddd"
                      ]
                   ]
        }
  
     }
  
    func(apis)
  }
  </code></pre>
  
  <p>From this, "api", always has the values of the last block. How can I dynamically set a property related to my current buildType until Gradle builds?</p>