title: Gradle Warning: missing groovy return statement
body: <p>I'm having the following warning in my gradle build file</p>
  
  <blockquote>
    <p>Not all execution paths return a value</p>
    
    <p>This inspection reports on missing groovy return statement at the end of methods returning</p>
  </blockquote>
  
  <p>and this is the code in that file</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 21
      buildToolsVersion "21.1.2"
  
      defaultConfig {
          applicationId "ac.company.srikar.quickhelpindia"
          minSdkVersion 15
          targetSdkVersion 21
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          android {
              release {
                  minifyEnabled false
                  proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
              }
          }
      }
  
      dependencies {
          compile fileTree(dir: 'libs', include: ['*.jar'])
          compile 'com.android.support:appcompat-v7:21.0.3'
      }
  }
  </code></pre>
  
  <p>Can anyone tell what is the issue here and how to get rid of this warning.</p>