title: Unresolved references of buildSrc kotlin constants after migration to gradle kotlin dsl
body: <p>I´m trying to migrate my android project to using gradle kotlin dsl, replacing all build.gradle files with build.gradle.kts files and using kotlin there. Already before, I used to have a kotlin file containing object elements with library and version constants (in buildSrc -> src -> main -> kotlin), like:</p>
  
  <pre><code>object Versions {
      const val anyLibVersion = "1.0.0"
  }
  
  object Lib {
      const val anyLib = "x:y:${Versions.anyLibVersion}"
  }
  </code></pre>
  
  <p>In build.gradle files, I can access these constants without problems, but as soon as I switch them to build.gradle.kts, it cannot resolve them anymore. Any explaination for that?</p>