title: How to get current flavor in gradle
body: <p>I have two product flavors for my app:</p>
  
  <pre><code>productFlavors {
      europe {
          buildConfigField("Boolean", "BEACON_ENABLED", "false")
      }
  
      usa {
          buildConfigField("Boolean", "BEACON_ENABLED", "true")
      }
  }
  </code></pre>
  
  <p>Now I want to get the current flavor name (which one I selected in Android Studio) inside a task to change the path:</p>
  
  <pre><code>task copyJar(type: Copy) {
      from('build/intermediates/bundles/' + FLAVOR_NAME + '/release/')
  }
  </code></pre>
  
  <p>How can I obtain FLAVOR_NAME in Gradle?</p>
  
  <p>Thanks</p>