title: How fix build.gradle?
body: <p>Connected my module and in <code>build.gradle</code> write next:</p>
  
  <pre><code>plugins {
      id("org.jlleitschuh.gradle.ktlint")
      kotlin("jvm")
  }
  
  dependencies {
      compileOnly(kotlin("stdlib"))
      compileOnly(kotlin("reflect"))
      compileOnly(kotlin("script-runtime"))
      compileOnly("com.pinterest.ktlint:ktlint-core:0.34.2")
  }
  </code></pre>
  
  <p>and get next error:</p>
  
  <blockquote>
    <p>startup failed: build file
    '/home/vadimm/AndroidStudioProjects/homework/target-list/custom_ktlint_rules/build.gradle':
    3: only id(String) method calls allowed in plugins {} script block</p>
    
    <p>See
    <a href="https://docs.gradle.org/5.1.1/userguide/plugins.html#sec:plugins_block" rel="noreferrer">https://docs.gradle.org/5.1.1/userguide/plugins.html#sec:plugins_block</a>
    for information on the plugins {} block</p>
    
    <p>@ line 3, column 5.
           kotlin("jvm")
           ^</p>
    
    <p>1 error</p>
  </blockquote>
  
  <p>Also tried write smth like this:
  <code>apply plugin: 'kotlin'</code> or </p>
  
  <pre><code>plugins {
      id 'kotlin'
  }
  </code></pre>
  
  <p>but it is not successful</p>