title: Kotlin gradle build Unresolved reference to kotlin-stdlib functions
body: <p>I have the following <code>build.gradle</code> file for my package</p>
  
  <pre><code>buildscript {
      ext.kotlin_version = '1.2.21'
  
      repositories {
          jcenter()
          mavenCentral()
      }
  
      dependencies {
      classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
      classpath "org.jetbrains.kotlin:kotlin-stdlib"
      }
  }
  
  plugins {
      id "org.jetbrains.kotlin.jvm" version "1.2.21"
  }
  
  sourceSets {
      main.kotlin.srcDirs += "./"
  }
  </code></pre>
  
  <p>On running <code>gradle compileKotlin</code> I get the following errors</p>
  
  <pre><code>Starting a Gradle Daemon (subsequent builds will be faster)                                                                                                                                                           
  e: /home/ishan/code/kotlin-server/server/ConnectionHandler.kt: (26, 35): Too many arguments for public constructor String() defined in kotlin.String                                                                  
  e: /home/ishan/code/kotlin-server/server/ConnectionHandler.kt: (26, 38): Unresolved reference: trim                                                                                                                   
  e: /home/ishan/code/kotlin-server/server/ConnectionHandler.kt: (30, 29): Unresolved reference: isEmpty                                                                                                                
  e: /home/ishan/code/kotlin-server/server/ConnectionHandler.kt: (40, 9): Unresolved reference: print                                                                                                                   
  e: /home/ishan/code/kotlin-server/server/ConnectionHandler.kt: (41, 9): Unresolved reference: print                                                                                                                   
  e: /home/ishan/code/kotlin-server/server/ConnectionHandler.kt: (45, 9): Unresolved reference: println                                                                                                                 
  e: /home/ishan/code/kotlin-server/server/HttpRequest.kt: (8, 19): Unresolved reference: HashMap                                                                                                                       
  e: /home/ishan/code/kotlin-server/server/HttpRequest.kt: (16, 38): Unresolved reference: split                                                                                                                        
  e: /home/ishan/code/kotlin-server/server/HttpResponse.kt: (22, 31): Unresolved reference: toByteArray                                                                                                                 
  e: /home/ishan/code/kotlin-server/server/HttpStatusCodes.kt: (3, 22): Unresolved reference: HashMap                                                                                                                   
  e: /home/ishan/code/kotlin-server/server/HttpStatusCodes.kt: (3, 45): Unresolved reference: hashMapOf                                                                                                                 
  e: /home/ishan/code/kotlin-server/server/HttpStatusCodes.kt: (5, 9): Unresolved reference: to                                                                                                                         
  e: /home/ishan/code/kotlin-server/server/HttpStatusCodes.kt: (6, 9): Unresolved reference: to                                                                                                                         
  e: /home/ishan/code/kotlin-server/server/HttpStatusCodes.kt: (7, 9): Unresolved reference: to                                                                                                                         
  e: /home/ishan/code/kotlin-server/server/HttpStatusCodes.kt: (8, 9): Unresolved reference: to
  </code></pre>
  
  <p>When I use <code>kotlinc -include-runtime</code> command to compile this package, it compiles without any issues and I even have a working <code>.jar</code> file for it.</p>
  
  <p>What am I missing here? If you want to inspect more, I've also created a <a href="https://github.com/ishankhare07/kotlin-web-server/issues/1" rel="noreferrer">github issue</a> for this with links to the related code.</p>