In project are declared
targets: JS, WasmJS
sourceSets: commonMain, webMain
Gradle tasks are correct:
kspCommonMainKotlinMetadata
kspKotlinJs
kspKotlinWasmJs
kspTestKotlinJs
kspTestKotlinWasmJs
kspWebMainKotlinMetadata
But in configurations are:
ksp
kspCommonMainMetadata
kspJs
kspJsTest
kspWasmJs
kspWasmJsTest
-> kspWebMainMetadata is missing
I found only one way how to use task "kspWebMainKotlinMetadata" as:
dependencies {
add("ksp", projects.customKspPlugin)
}
With this configurations after execution of gradle task kspWebMainKotlinMetadata are generated
- build/generated/ksp/metadata/commonMain
- build/generated/ksp/metadata/webMain
There happened next problem:
build/generated/ksp/metadata/webMain is combination of sourceSets commonMain and webMain.
I mean duplicity of commonMain.
Expected behavior
Existence kspWebMainMetadata configuration.
Then configutaion of:
dependencies {
add("kspWebMainMetadata", projects.customKspPlugin)
}
will be generated only build/generated/ksp/metadata/webMain from only sourceSet of webMain
OR:
dependencies {
add("kspWebMain", projects.customKspPlugin)
}
will generate build/generated/ksp/webMain as combination of webMain + its parrents, in this case commonMain
In project are declared
targets: JS, WasmJS
sourceSets: commonMain, webMain
Gradle tasks are correct:
But in configurations are:
->
kspWebMainMetadatais missingI found only one way how to use task "kspWebMainKotlinMetadata" as:
With this configurations after execution of gradle task
kspWebMainKotlinMetadataare generatedThere happened next problem:
build/generated/ksp/metadata/webMainis combination of sourceSets commonMain and webMain.I mean duplicity of commonMain.
Expected behavior
Existence
kspWebMainMetadataconfiguration.Then configutaion of:
will be generated only
build/generated/ksp/metadata/webMainfrom only sourceSet ofwebMainOR:
will generate
build/generated/ksp/webMainas combination ofwebMain+ its parrents, in this casecommonMain