title: How to add dependency for two build types with one configuration?
body: <p>My app consists of 2 flavors and 3 build types:</p>
  <pre><code>productFlavors {
      free
      paid
  }
  
  buildTypes {
      debug
      beta
      release
  }
  </code></pre>
  <p>I can simply add a dependency for all variants, specific flavor or build type:</p>
  <pre><code>dependencies {
      implementation &quot;some-dependency&quot;
      freeImplementation &quot;some-dependency&quot;
      betaImplementation &quot;some-dependency&quot;
  }
  </code></pre>
  <p>To add a dependency for a specific variant, I can do do this:</p>
  <pre><code>configurations {
      freeDebugImplementation
  }
  
  dependencies {
      freeDebugImplementation &quot;some-dependency&quot;
  }
  </code></pre>
  <hr />
  <p><strong>But what I want is to combine several flavors/build types/variants.</strong> Something along the lines of:</p>
  <pre><code>configurations {
      debugBetaImplementation
  }
  
  dependencies {
      debugBetaImplementation &quot;some-dependency&quot;
  }
  </code></pre>
  <p>which should be equivalent to:</p>
  <pre><code>dependencies {
      debugImplementation &quot;some-dependency&quot;
      betaImplementation &quot;some-dependency&quot;
  }
  </code></pre>
  <p>Is there a way to achieve this?</p>