what do I need to do with Kotlin 1.4 to get kotlin...
# gradle
n
what do I need to do with Kotlin 1.4 to get kotlin-stdlib-jdk8 added to my classpath? regular JVM project, not multiplatform. I've tried this to no avail
Copy code
dependencies {
    implementation(kotlin("stdlib"))
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
    kotlinOptions {
        jvmTarget = "11"
    }
}
this page suggests it should be automatic:
The Kotlin Gradle plugin will select the appropriate JVM standard library depending on the
kotlinOptions.jvmTarget
compiler option of your Gradle build script.
but for now I can just add it manually.
j
What I found out, is that I could just get rid of it. If I set the target to java 8 it is there
like how they promised
did you experience the stdlib not being added?
n
yeah stdlib and stdlib-common are there, but not stdlib-jdk7 or stdlib-jdk8
v
Do not add a stdlib manually, then they get added
If you add them manually you have to add what you want like
kotlin("stdlib-jdk8")
n
ah, gotcha. the new-project dialog added it 😛
can confirm, removing the dependency did indeed work 👍
👌 1