title: How to parametrize Kotlin version in the plugins block of a build.gradle.kts script?
body: <p>In the script below:</p>
  <pre><code>val kotlinVersion by extra (&quot;1.3.61&quot;)
  
  println(&quot;Version &quot;+kotlinVersion)
  
  plugins {
      kotlin(&quot;jvm&quot;) version kotlinVersion
  }
  </code></pre>
  <p>The variable <code>kotlinVersion</code> is correctly printed. Nevertheless it is not recognized in the <code>plugins</code> block and the following error is risen:</p>
  <pre><code>e: /home/achadde/sources/kotlin/minichain/build.gradle.kts:6:27: Unresolved reference: kotlinVersion
  </code></pre>
  <p>How can I fix this?</p>