Andrii Yanechko
12/02/2023, 9:25 PM8.0
(from 7.5
)Andrii Yanechko
12/02/2023, 9:26 PMA problem was found with the configuration of task ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' (type 'CopyCommonizeCInteropForIdeTask').
* Exception is:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' (type 'CopyCommonizeCInteropForIdeTask').
Reason: Task ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' uses this output of task ':code:client:common:utils:local-storage:commonizeCInterop' 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 ':code:client:common:utils:local-storage:commonizeCInterop' as an input of ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde'.
2. Declare an explicit dependency on ':code:client:common:utils:local-storage:commonizeCInterop' from ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' using Task#dependsOn.
3. Declare an explicit dependency on ':code:client:common:utils:local-storage:commonizeCInterop' from ':code:client:common:utils:utils-local-storage:copyCommonizeCInteropForIde' using Task#mustRunAfter.
Andrii Yanechko
12/02/2023, 9:26 PMChrimaeon
12/02/2023, 9:40 PMCopyCommonizeCInteropForIdeTask
a custom task you created?
So since Gradle 8, tasks that depend on each other need to declare their dependency.
https://docs.gradle.org/current/userguide/validation_problems.html#implicit_dependencyAndrii Yanechko
12/02/2023, 11:03 PMcinterop
, however the issue was in module's naming, I used custom name
for that module, after fixing the name it works as expected