diff --git a/libs/emojis/build.gradle.kts b/libs/emojis/build.gradle.kts index 370070ee78..8b9dc57d65 100644 --- a/libs/emojis/build.gradle.kts +++ b/libs/emojis/build.gradle.kts @@ -33,9 +33,10 @@ dependencies { androidTestImplementation(libs.androidx.test.runner) } -// Define the task to fetch and generate emoji data +// Define the task to fetch and generate emoji data. KSP reads src/main/kotlin too, so it +// has to wait for the generated sources as well as the Kotlin compile. afterEvaluate { - tasks.matching { it.name.matches(Regex("compile.*Kotlin")) }.configureEach { + tasks.matching { it.name.matches(Regex("(compile|ksp).*Kotlin")) }.configureEach { dependsOn("generateEmojiList") } }