Bence Boros
11/02/2023, 11:53 AMcheck
task for the root project
A problem was found with the configuration of task ':core-data:common:lintAnalyzeDebug' (type 'AndroidLintAnalysisTask').
- Gradle detected a problem with the following location: '/Users/benboros/Documents/Projects/skyhighprofits/core-data/common/build/generated/ksp/js'.
Reason: Task ':core-data:common:lintAnalyzeDebug' uses this output of task ':core-data:common:kspKotlinJs' 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 ':core-data:common:kspKotlinJs' as an input of ':core-data:common:lintAnalyzeDebug'.
2. Declare an explicit dependency on ':core-data:common:kspKotlinJs' from ':core-data:common:lintAnalyzeDebug' using Task#dependsOn.
3. Declare an explicit dependency on ':core-data:common:kspKotlinJs' from ':core-data:common:lintAnalyzeDebug' using Task#mustRunAfter.
Please refer to <https://docs.gradle.org/8.0/userguide/validation_problems.html#implicit_dependency> for more details about this problem.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
And I'm getting the same exact error for every module that has android + js targets in the project. Any clues anyone?Artem Kobzar
11/02/2023, 1:39 PMIlya Goncharov [JB]
11/02/2023, 1:41 PMBence Boros
11/02/2023, 1:58 PMEdoardo Luppi
11/02/2023, 2:46 PMkotlinx-resources
. Different tasks but same problem.
I have (simplified) a test-module
that depends on main-module
, that in turn depends on test-module
in the test classpath.
I had the plugin applied to both the projects, and I was getting the same kind of error.
After removing the plugin from test-module
, no more error.
https://kotlinlang.slack.com/archives/C0B8L3U69/p1696426623798019Bence Boros
11/02/2023, 3:53 PMEdoardo Luppi
11/02/2023, 4:13 PMmodules/
module-1/
module-2/
test-utils/
test-utils
is a standard module that contains commonMain
sources.
It is then imported into the other modules through
commonTest {
dependencies {
...
implementation(projects.testUtils)
}
}
Bence Boros
11/02/2023, 4:47 PMIlya Goncharov [JB]
11/02/2023, 6:23 PMI don’t have time to give you a repro project but I can share buildconfigs, etc. if that helps.Yes, it may help