title: Configure Gradle Kotlin DSL to work with custom repository
body: <p>I'm working on a project where, instead of using the default repositories (Maven Central, jCenter, and so), we are using an internal JFrog repository. The project is using Kotlin DSL for Gradle.</p>
  
  <p>The problem is, even configuring the <code>pluginManagement</code> block inside the <code>settings.gradle.kts</code> file, Gradle still tries to fetch dependencies from Gradle Central Plugin Repository</p>
  
  <pre><code>// settings.gradle.kts
  pluginManagement {
      repositories {
          maven(url = "https://myinternalrepo.corp/artifactory")
      }
  }
  
  // other definitions
  </code></pre>
  
  <p>Failing message:</p>
  
  <pre><code>Plugin [id: 'org.gradle.kotlin.kotlin-dsl', version: '1.1.3'] was not found in any of the following sources:
  
  - Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  - Plugin Repositories (could not resolve plugin artifact 'org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:1.1.3')
    Searched in the following repositories:
      Gradle Central Plugin Repository
  </code></pre>
  
  <p>Does anyone know what I am doing wrong?</p>