Dan Rusu
12/29/2022, 6:18 PMtasks.named("compileKotlin", org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile::class.java) {
generates this error when refreshing Gradle:
Task with name 'compileKotlin' not found in project...
I was able to get around it by switching that line with this:
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile::class.java) {
Am I missing something else or are the new instructions incorrect?ephemient
12/29/2022, 6:30 PMallProjects
ephemient
12/29/2022, 6:31 PMephemient
12/29/2022, 6:32 PMDan Rusu
12/29/2022, 6:33 PMtasks.named
with tasks.withType
?ephemient
12/29/2022, 6:34 PMephemient
12/29/2022, 6:35 PMephemient
12/29/2022, 6:36 PMwithType(action)
for lazy configuration reasons (it's not, for historical Gradle reasons)ephemient
12/29/2022, 6:37 PM.withType().configureEach(action)
will be lazy if you needDan Rusu
12/29/2022, 6:38 PM