title: Kotlin compilation fails in Terminal but not Intellij
body: <p>I have the following imports in a class:</p>
  
  <pre><code>import java.net.http.HttpClient
  import java.net.http.HttpRequest
  import java.net.http.HttpResponse
  </code></pre>
  
  <p>When I build inside of Intellij, the dependencies are properly resolved and there are no issues. When I run CI in GitHub Actions, there are also no issues.</p>
  
  <p>However, when I run ./gradlew clean build in my macos terminal, it is unable to resolve the dependencies above. It fails on the compileKotlin step.</p>
  
  <p>The following is my build.gradle file.</p>
  
  <pre><code>plugins {
      id 'java'
      id 'org.jetbrains.kotlin.jvm' version '1.3.60'
  }
  
  group 'com.test'
  version '1.0-SNAPSHOT'
  
  sourceCompatibility = 1.8
  
  repositories {
      mavenCentral()
  
  }
  
  dependencies {
  
      // kotlin
      implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
  
      // gson
      implementation 'com.google.code.gson:gson:2.8.6'
  
      // testing
      testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
      testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
      testRuntime('org.junit.jupiter:junit-jupiter-engine:5.4.2')
      testCompile("org.assertj:assertj-core:3.11.1")
  }
  
  compileKotlin {
      kotlinOptions.jvmTarget = "1.8"
  }
  compileTestKotlin {
      kotlinOptions.jvmTarget = "1.8"
  }
  
  test {
      useJUnitPlatform()
  }
  
  
  </code></pre>
  
  <p>Thank you!</p>