buszi0809
05/11/2025, 4:05 PMandroidLibrary {
compilations.configureEach {
compilerOptions.configure {
jvmTarget.set(JVM_TARGET)
}
}
}
but then I've received a deprecation message that I should use compileTaskProvider
instead. But the issue is that when I migrate to it:
androidLibrary {
compilations.configureEach {
compileTaskProvider.configure {
compilerOptions {
jvmTarget.set(JVM_TARGET)
}
}
}
}
the jvmTarget
is unresolved in here. Has anyone found a solution for this? I'm using Kotlin version 2.1.20
. My opinion is that the root cause of that is because the type of compileTaskProvider
is too ambigous:
val compileTaskProvider: TaskProvider<out KotlinCompilationTask<*>>
buszi0809
05/11/2025, 4:10 PMcompileTaskProvider.configure {
(this as KotlinJvmCompile).compilerOptions.jvmTarget.set(JVM_TARGET)
}
but it still feels fishytapchicoma
05/12/2025, 7:30 AM