title: Gradle 3.0.0 alpha variant output issue
body: <p>I want to have a different <code>versionCode</code> for <code>debug</code> build type rather than the one in <code>release</code> build type. This used to work by using the configuration from below in Gradle Android plugin v2.3.2 (Gradle v3.3), but doesn't have any effect now in v3.0.0-alpha5 (Gradle v4.1-milestone-1). Any ideas as to what changed in the newest Gradle plugin that makes it ignore the <code>variant.mergedFlavor.versionCode</code> attribute?</p>
  
  <pre><code>buildTypes {    
        debug {
                  applicationIdSuffix ".debug"
                  versionNameSuffix "-" + buildTime()
                  android.applicationVariants.all { variant -&gt;
                      if (variant.buildType.name != buildTypes.debug.name) return
                      variant.outputs.all {
                          outputFileName = "${archivesBaseName}-${variant.name}-v${variant.versionName}-signed.apk"
                          variant.mergedFlavor.versionCode = Integer.parseInt(buildTimeSmall())
                      }
                  }
              }
  }
  </code></pre>