-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BuildKonfig 0.9.0
-> 0.10.0
breaks Gradle Sync
#56
Comments
Hi, Indeed I changed the source-sets registration logic in 0.10.0.
Previously the plugin explicitly obtained I thought there's only one It seems like Can you provide your targets & sourceSets configuration in (Thanks for sponsoring me btw! It means a lot to me.) |
Hi, thanks for your reply; my source sets dependencies (this is within a single module) look like this: So far in KMP it has probably been less common to have these intermediary source-sets (here being Also, JetBrains do show some examples of setting up source-sets like this in their KMP introductory material; just to show off the possibilities. See the source-set configurations discussed here. |
I had a look at the relevant code change that you linked to; and see that your intent was to remove reliance on the exact name Yes, now we see that By the way, you might consider using a |
Here's what I found so far. Actually, there's only one KotlinMetadataTarget, but there are multiple When so
so if we have a source set configuration above, KotlinMetadataTarget has compilations below
Looks like what we want is commonMain or main compilation, but I'm not sure which is the one. But when I create a simple project without shared source set, there's one single main compilation
So for now I'm going to check the name of the compilation |
Ok you are right. commonMain and main has same SourceSet, but if it's the same it shouldn't be a problem |
Hi, I've just released v0.10.2 with a possible fix for this issue. |
Thanks for BuildKonfig, it continues to be an essential tool for KMP App Development! ❤️
I was happy to see continued maintenance with a
0.10.0
release:Unfortunately, this new version has a bug for my project.
Gradle Sync fails with the error:
(I've redacted my actual username and project name but the pattern is preserved)
This prevents working with the project.
If I change only the BuildKonfig dependency back to
0.9.0
, everything works as expected.My project has quite a nested module structure; perhaps you've changed some code related to adding source-set paths to modules that has caused it to add to multiple source-sets unnecessarily?
The text was updated successfully, but these errors were encountered: