What is the difference between specifying jvmTarge...
# multiplatform
s
What is the difference between specifying jvmTarget with
Copy code
kotlin {

   targets {
      jvm {
         compilations.all {
            kotlinOptions {
               jvmTarget = "1.8"
            }
         }
      }
   }
}
and
Copy code
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
   kotlinOptions.jvmTarget = "1.8"
}
k
that's the same thing
the nice thing about the second form is that it applies to all targets, so any changes to your targets in the future will be handled