jean
01/29/2024, 8:54 AMSome problems were found with the configuration of task ':my_module:kspDevDebugUnitTestKotlin' (type 'KspTaskJvm').
- Gradle detected a problem with the following location: '/home/********/project/my_module/build/generated/ksp/devRelease/java/com/company/my_module/db/roomdao/Dao_Impl.java'.
Reason: Task ':my_module:kspDevDebugUnitTestKotlin' uses this output of task ':my_module:kspDevReleaseKotlin' 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 ':my_module:kspDevReleaseKotlin' as an input of ':my_module:kspDevDebugUnitTestKotlin'.
2. Declare an explicit dependency on ':my_module:kspDevReleaseKotlin' from ':my_module:kspDevDebugUnitTestKotlin' using Task#dependsOn.
3. Declare an explicit dependency on ':my_module:kspDevReleaseKotlin' from ':my_module:kspDevDebugUnitTestKotlin' using Task#mustRunAfter.
Isn’t it weird that kspDevDebugUnitTestKotlin
depends on kspDevReleaseKotlin
?Jiaxiang
01/29/2024, 7:29 PMjean
01/29/2024, 8:39 PMjean
01/31/2024, 7:58 AMjean
02/01/2024, 7:53 AM./gradlew koverXmlReport sonar -Pflavor=staging