Wyatt Kennedy
08/31/2023, 1:47 AMjw
08/31/2023, 1:58 AMpluginManager.apply
• look up the ksp configuration from configurations.getByName
• add your ksp processor dependency with Configuration.add
on the value returned from aboveWyatt Kennedy
08/31/2023, 5:34 AMproject.pluginManager.apply(KspGradleSubplugin::class.java)
val config = project.configurations.getByName("ksp")
val path = mutableMapOf("path" to ":kspprocessor")
config.dependencies.add(project.dependencies.project(path))
org.gradle.api.InvalidUserDataException: Required keys [path] are missing from map {}.
jw
08/31/2023, 5:39 AMproject.dependencies.add("ksp", project.dependencies.project(mapOf("path" to ":kspprocessor")))
jw
08/31/2023, 5:40 AMWyatt Kennedy
08/31/2023, 6:04 AMWyatt Kennedy
09/01/2023, 12:21 AM> Task :binding-check:kspKotlin NO-SOURCE
. Didn't realize ksp doesn't run if you have no kotlin sources in your test project. Applied it to a real project and the process ran without issue. Thanks for your assistance sir