ansman
01/02/2023, 7:06 PMafterEvaluate {
tasks.withType<Kapt> {
val ksp = tasks.findByName(name.replace("kapt", "ksp")) as KspTask?
?: return@withType
kaptExternalClasspath.from(ksp.destination)
}
tasks.withType<KaptGenerateStubsTask> {
val ksp = tasks.findByName(name.replace("kaptGenerateStubs", "ksp")) as KspTask?
?: return@withType
kaptClasspath.from(ksp.destination)
}
}