iari
02/02/2022, 11:08 AMkotlin.io.path
removed in 1.6 ?
These do not work anymore for me:
Path.readBytes()
Path.absolutePathString()
Path.writeBytes(ByteArray)
I can't find hints about it in changelogsBart Kleijngeld
02/02/2022, 11:11 AMimport java.nio.file.Path
Also, as I understand it it's a method on the instance, so you can't import readBytes
like that, but should instantiate the Path(...)
first and call the method on that.iari
02/02/2022, 11:14 AMiari
02/02/2022, 11:14 AMephemient
02/02/2022, 11:14 AMephemient
02/02/2022, 11:15 AMiari
02/02/2022, 11:15 AMBart Kleijngeld
02/02/2022, 11:17 AMephemient
02/02/2022, 11:17 AMephemient
02/02/2022, 11:21 AMiari
02/02/2022, 11:26 AMcompileKotlin {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
dependsOn(compileSass.get())
}
Kotlin does target 17iari
02/02/2022, 12:09 PMjava.sourceCompatibility = JavaVersion.VERSION_17
And @ephemient I doubt this has to do with it, I never get something like Unknown JVM target version
Klitos Kyriacou
02/02/2022, 12:27 PM