Open martinbonnin opened 4 years ago
Can we reopen this one? With latest main
, multiplatform projects are skipped with No main source set. No analysis performed
.
Also, multiplatform publication have a "common" publication that is used as a pointer to the individual platform publications and using them triggers false positives, even if using them in non-multiplatform projects:
For an exemple:
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
Will be trigger:
Transitively used dependencies that should be declared directly as indicated:
- api("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9")
Even though it's mostly correct to only include the "common" publication and let gradle decide the implementation.
This can be reproduced with the use-dependency-analysis
branch of apollo-android
: https://github.com/apollographql/apollo-android/tree/use-dependency-analysis
I can provide a more minimal exemple if it helps.
I think it will require a focused effort to support kotlin multiplatform, rather than trying to fix seeming bugs in an ad hoc manner. I will reopen this ticket with that in mind.
Hello. Are there any updates on supporting KMM projects? It is a highly anticipated feature by our team. Thank you.
Running the
buildHealth
task onapollo-android
returns useful information but it looks like the plugin has some difficulties coping with multiplatform projects. For an exemple:apollo-api
is not recognized andnull
is displayed instead:apollo-normalized-cache-api
is already added as aapi
dependency on thecommonMain
sourceSet so I think it shouldn't be reportedThis can be reproduced with the
dependency-analysis
branch