What is the difference between
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
and
compileKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
Will they both achive the same end result in a gradle/Kotlin-library? jvmTarget is for setting which standardlibrary version to use, I understood.