title: Script compilation error at declaring repository on gradle
body: <p>I am trying to declare some repositories in my <em>build.gradle.kts</em>, but whenever I do <code>gradle bootRun</code> I get a script compilation error that I cannot get rid of.</p>
  <pre><code> * What went wrong: Script compilation error:
   
     Line 13:             url &quot;https://plugins.gradle.org/m2/&quot;  
                              ^ Unexpected tokens (use ';' to separate expressions on the same line)
  </code></pre>
  <p>The lines causing the error are these:</p>
  <pre><code>buildscript {
      repositories {
          mavenCentral()
          maven {
              url &quot;https://plugins.gradle.org/m2/&quot; 
          }
      }
      dependencies {
          classpath(kotlin(&quot;gradle-plugin&quot;, version = &quot;1.3.61&quot;))
      }
  }
  </code></pre>
  <p>I cannot understand what is wrong.</p>
  <p>I'm running this from a Powershell.</p>
  <p><code>Gradle -version</code> output:</p>
  <blockquote>
  <hr />
  <p>Gradle 6.6.1</p>
  <hr />
  <p>Build time:   2020-08-25 16:29:12 UTC Revision:<br />
  f2d1fb54a951d8b11d25748e4711bec8d128d7e3</p>
  <p>Kotlin:       1.3.72<br />
  Groovy:       2.5.12<br />
  Ant:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020<br />
  JVM:          1.8.0_252 (Amazon.com Inc. 25.252-b09)<br />
  OS:           Windows 10 10.0 amd64</p>
  </blockquote>