tony
03/26/2020, 11:49 PM--release 8 directly. My question is, with a Kotlin-only project, is there a way to tell it that in a gradle build script? I looked in KotlinJvmOptions and all its super classes, and didn't see any likely suspects. I tried passing it to freeCompilerArgs, but that complains its an unknown value.danny
03/27/2020, 12:56 AMkotlinOptions.jvmTarget on the compile taskdanny
03/27/2020, 12:57 AMtony
03/27/2020, 4:50 AMtony
03/27/2020, 4:46 PMkotlinOptions.jvmTarget use -target/-source or --release when writing java bytecode?Fleshgrinder
03/27/2020, 4:54 PMjvmTarget to 8 will produce bytecode that is compatible with any JVM release that can interpret it, that's it.tony
03/27/2020, 5:17 PMilya.gorbunov
03/27/2020, 5:56 PMkotlinOptions.jdkHome parameter in addition to jvmTarget. This will ensure that you don't accidentaly use any API from a newer JDK.tony
03/27/2020, 5:58 PMtony
03/27/2020, 5:59 PMtony
03/27/2020, 6:00 PM