title: Specify versionCode in android/gradle projects project root build.gradle
body: <p>I recently switched from Eclipse to Android Studio (for test purposes) with an production project and it feel really great. I like the gradle way very much.</p>
  
  <p>In Android Studio the project structure looks (simplified) something like this </p>
  
  <pre><code>+RandomProject
  |-+Random
  | |- build.gradle (lets call it build2)
  | |- [...]
  |- build.gradle (lets call it build1)
  |- [..]
  </code></pre>
  
  <p>The <strong>build1</strong> file has the following content by default:</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  </code></pre>
  
  <p>I wonder if its possible/a good practice to specify the versionName and versionCode in that (<strong>build1</strong>) file, so that it is going to be "inherited" to the <strong>build2</strong> file. (and if so, how?)</p>
  
  <p>Thanks for the input.</p>