Hi folks, is mockative still alive?
I had no issues with it when working with kotlin v1.9.21 and ksp v1.9.21-1.0.16, however when I bump kotlin to 2.0.21 and ksp to 2.0.21-1.0.25 I'm getting the "Make sure the property holding the mock is annotated with @Mock" message (although I see the mock function is generated for my type) so the issue reported here. Not managed to solve, considering trying mokkery instead.
FYI @Nicklas Jensen
n
Nicklas Jensen
11/04/2024, 7:22 PM
It is alive. Kotlin 2 broke some fundamentals of Mockative, which made me lose interest in supporting it. I recently picked it back up due to changes in Kotlin 2.0.21 and KSP 2. I am looking to release an update this week that makes Mockative compatible with Kotlin 2.0.21+.
🙌 1
b
Bart
11/04/2024, 7:23 PM
Thanks for this update @Nicklas Jensen, fingers crossed!
n
Nicklas Jensen
11/04/2024, 7:24 PM
Everything is working with Kotlin 2 by now, but I had issues publishing to Sonatype / Maven Central all weekend 😞
🙁 1
Nicklas Jensen
11/04/2024, 8:55 PM
I got everything sorted out and I have just now released Mockative 3 with support for Kotlin 2 🥳