title: Load common properties in build.gradle doesn't work for buildscript
body: <p>I have multiple projects which share common properties. I want to manage common dependencies in one place so I decided to use <a href="https://stackoverflow.com/a/37101792/10950272">this approach</a> (from <strong>Edit</strong> section).</p>
  <pre><code>//properties.gradle
  ext {
      pluginVersion = &quot;x.x.x&quot;
  }
  </code></pre>
  <pre><code>//build.gradle
  apply from: '/path/to/properties.gradle'
  
  buildscript {
      dependencies {
          classpath &quot;some.group:some-plugin:${pluginVersion}&quot;
      }
  }
  ...
  </code></pre>
  <p>This results with following error:</p>
  <pre><code>Could not get unknown property 'pluginVersion'
  </code></pre>
  <p>What should I do to load properties from <code>properties.gradle</code> file? What am I doing wrong? Is <code>buildscript</code> section somehow different than other sections?</p>
  <p>I'll just add that before extracting common properties I kept them all in <code>gradle.properties</code> file and they worked fine.</p>