title: gradle kotlin dsl - How to configure dependencies for subprojects
body: <p>I'm creating gradle multi project for kotlin programming.</p>
  
  <p>When I create <code>dependencies</code>  under <code>subprojects</code> in main project <code>build.gradle.kts</code> I'm getting error <strong>Configuration with name 'implementation' not found</strong>. </p>
  
  <p>Below is my configuration - </p>
  
  <pre><code>    plugins {
          kotlin("jvm") version "1.3.61" apply false
      }
  
      subprojects {   
          dependencies {
              val implementation by configurations
              implementation(kotlin("stdlib-jdk8"))
          }
      }
  </code></pre>
  
  <p>Once I move the plugins and dependencies into subproject build.gradle.kts then it is working fine.
  How can I make dependencies under <code>subprojects</code> work fine?</p>
  
  <p>Code is on <a href="https://github.com/rajcspsg/mastering-kotlin/blob/gradle-subproject-implementation-error/build.gradle.kts" rel="noreferrer">github</a>. </p>