From 9f5d28f1e944843fd6a113d1b87dc3a4c4f9eb5a Mon Sep 17 00:00:00 2001 From: Brad Corso Date: Thu, 10 Sep 2026 16:10:10 -0700 Subject: [PATCH] Expand documentation for the KSP PSI resolution flag. Updates the Dagger KSP developer guide to provide more details on the ksp.experimental.psi.resolution=true flag, explaining how it improves build performance by preferring PSI-based resolution over symbol-based resolution. RELNOTES=N/A PiperOrigin-RevId: 979451411 --- dev-guide/ksp.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dev-guide/ksp.md b/dev-guide/ksp.md index 55e08f13a9f..47f1b20db3e 100644 --- a/dev-guide/ksp.md +++ b/dev-guide/ksp.md @@ -34,11 +34,11 @@ dependencies { ``` For additional build performance improvements, you can also try adding the -following to your `gradle.properties` file: - -```text -ksp.experimental.psi.resolution=true -``` +experimental KSP flag, [`ksp.experimental.psi.resolution=true`](https://github.com/google/ksp#reference-table), +to your `gradle.properties` file. This flag enables KSP's experimental PSI +resolution, which prefers a cheaper PSI-based resolution, and only falls back +to more expensive symbol-based resolution via the [Kotlin Analysis API](https://kotlin.github.io/analysis-api/index_md.html) +when necessary (e.g. see https://github.com/google/ksp/issues/2816). ## New Dagger SPI plugin (with KSP support)