You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this report. I think the configuration is not missing but to me it seems like it is created only once KGP creates the compilation for the shared "webMain" source set which likely happens after your build script has run. In KSP we derive these configuration from compilation rather than source set (possible regretably?) and the compilation for the shared source set are not eagerly created.
So i think as a workaround you can do
configurations.configureEach {
if (name == "kspWebMainMetadata") {
dependencies.add(project.dependencies.create(...))
}
}
And i will look into a more long term solution so you dont need hacky workarounds like that.
The second issue you mentioned (webMain generated output containing the commonMain output) is truly surprising to me too. I am looking at that as well (it is possibly a separate issue but lets track it here)
Activity
hfmehmed commentedon Sep 22, 2026
Thanks for this report. I think the configuration is not missing but to me it seems like it is created only once KGP creates the compilation for the shared "webMain" source set which likely happens after your build script has run. In KSP we derive these configuration from compilation rather than source set (possible regretably?) and the compilation for the shared source set are not eagerly created.
So i think as a workaround you can do
And i will look into a more long term solution so you dont need hacky workarounds like that.
The second issue you mentioned (webMain generated output containing the commonMain output) is truly surprising to me too. I am looking at that as well (it is possibly a separate issue but lets track it here)