yschimke
06/02/2023, 3:44 PMVampire
06/02/2023, 3:59 PMgenerate
in your build that depends on all code generation tasks and then configure your IDE to run that task before or after sync.
You can also configure this automatic task-running using the idea-ext
plugin if your IDE is IntelliJ.Vampire
06/02/2023, 4:00 PMTrevor Stone
06/02/2023, 4:52 PM// This triggers code-gen immediate on gradle sync
afterEvaluate {
tasks
.maybeCreate("prepareKotlinIdeaImport")
.dependsOn(tasks.getByPath(":${project.name}:kspKotlin"))
}
This is what I use for jvm KSPyschimke
06/02/2023, 4:57 PMTrevor Stone
06/02/2023, 4:58 PM