Chilli
11/24/2020, 11:53 PMAutoCloseable.use(...)
function? It should be there, according to the stdlib documentation...Chilli
11/24/2020, 11:53 PMChilli
11/25/2020, 12:01 AMephemient
11/25/2020, 12:05 AMephemient
11/25/2020, 12:05 AMChilli
11/25/2020, 12:06 AMtasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions.jvmTarget = "1.8"
}
in build.gradle
Chilli
11/25/2020, 12:07 AMstdlib
set as a dependency, so I guess I have the base one?ephemient
11/25/2020, 12:12 AMgradle dependencies
say?Chilli
11/25/2020, 12:14 AMruntimeClasspath - Runtime classpath of compilation 'main' (target (jvm)).
+--- org.jetbrains.kotlin:kotlin-stdlib:1.4.20
| +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20
| \--- org.jetbrains:annotations:13.0 -> 16.0.1
...
Chilli
11/25/2020, 12:16 AMplugins {
id "application"
id "org.jetbrains.kotlin.jvm" version "1.4.20"
id "com.github.johnrengelman.shadow" version "6.1.0"
}
Don't know if it's needed, but here you goephemient
11/25/2020, 12:18 AMkotlinOptions.jvmTarget = "1.8"
changes the stdlib dependency for me, not sure what's different for you…Chilli
11/25/2020, 12:18 AMephemient
11/25/2020, 12:18 AMChilli
11/25/2020, 12:19 AMChilli
11/25/2020, 12:19 AMephemient
11/25/2020, 12:19 AMChilli
11/25/2020, 12:20 AMChilli
11/25/2020, 12:21 AMChilli
11/25/2020, 12:23 AM//noinspection GroovyAssignabilityCheck
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions.jvmTarget = "1.8"
}
Without the comment, Idea shows me a warning Cannot infer argument types
, but Gradle builds everything without problems. Any way to fix it?ephemient
11/25/2020, 12:24 AMChilli
11/25/2020, 12:24 AM