Showkase icon indicating copy to clipboard operation
Showkase copied to clipboard

KSP processor not triggered with Kotlin 2.1+ and Android Gradle Plugin 8.10+

Open karsie opened this issue 4 months ago • 1 comments

We have a setup which uses Showkase + Paparazzi. However, the KSP tasks disappear when we upgrade AGP to 8.10 or higher. However, when we downgrade Kotlin to 2.0 it does work again with AGP 8.10 and higher.

Current working versions: Showkase 1.0.5 Kotlin 2.1.20 KSP 2.1.20-2.0.1 AGP 8.9.2

In order to get AGP 8.10+ working we have to downgrade Kotlin: Showkase 1.0.5 Kotlin 2.0.21 KSP 2.0.21-1.0.28 AGP 8.12.0

The unexpected behavior is that the 'kspDebug' task can no longer be found, leading to compilation issues on the missing Showkase.getMetadata() function

karsie avatar Aug 14 '25 11:08 karsie

@karsie As an experiment, I updated the version of gradle to 8.11.1 here in my local branch and tested it - https://github.com/airbnb/Showkase/blob/master/build.gradle#L15

Things seem to be working fine at least in the sample project that's in Showkase. Can you pull it and give it a shot yourself. Maybe it's related to something else?

vinaygaba avatar Aug 17 '25 22:08 vinaygaba