title: Detect IDE environment with Gradle
body: <p>Is there anyway to detect the environment I'm running my project.</p>
  
  <p>Something like this:</p>
  
  <p>build.gradle</p>
  
  <pre><code>def usingIntelliJ = ...
  def usingAndroidStudio = ...
  if (usingIntelliJ) {
      buildConfigField "String", "IDE_ENV", "IDEA"
  } else if (usingAndroidStudio) {
      buildConfigField "String", "IDE_ENV", "AndroidStudio"
  }
  </code></pre>