-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
Please complete the following information:
- Library Version: 0.4.1
Describe the Bug:
When applying the plugin gradle fails:
* What went wrong:
A problem was found with the configuration of task ':modules:wear:wear-models:kspDebugKotlin' (type 'KspAATask').
- Gradle detected a problem with the following location: '/home/tolriq/Documents/Sources/symfonik/modules/wear/wear-models/build/generated/source/wire/debug'.
Reason: Task ':modules:wear:wear-models:kspDebugKotlin' uses this output of task ':modules:wear:wear-models:generateDebugProtos' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':modules:wear:wear-models:generateDebugProtos' as an input of ':modules:wear:wear-models:kspDebugKotlin'.
2. Declare an explicit dependency on ':modules:wear:wear-models:generateDebugProtos' from ':modules:wear:wear-models:kspDebugKotlin' using Task#dependsOn.
3. Declare an explicit dependency on ':modules:wear:wear-models:generateDebugProtos' from ':modules:wear:wear-models:kspDebugKotlin' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/9.2.0/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
Expected Behavior:
It should not do that.
While the error looks like unrelated to the plugin, this is the exact same issue that was generated in KSP 2.0.3 google/ksp#2595
Looks like the task may use or create things causing this issue.
Unfortunately I'm not a gradle expert to know a lot more what's going on here.