eygraber
01/04/2024, 11:54 PMapplyDefaultHierarchyTemplate
to create commonJs
source sets for js
and wasmJs
. I want to create a task that uses the commonJsMain
and commonJsTest
source sets , but I get an error saying that those source sets don't exist. I'm guessing that applyDefaultHierarchyTemplate
doesn't create them synchronously, so is the best approach to do something like this:applyDefaultHierarchyTemplate {
group("commonJs") {
withJs()
withWasm()
}
}
sourceSets.register("commonJsMain")
sourceSets.register("commonJsTest")
mbonnin
01/05/2024, 10:28 AMkotlin.sourceSets.all {
// react to sourceSets being added
}
?mbonnin
01/05/2024, 10:28 AMafterEvaluate {}
🙈 😬eygraber
01/05/2024, 10:35 AMmbonnin
01/05/2024, 10:37 AMtapchicoma
01/05/2024, 12:31 PMeygraber
01/05/2024, 7:41 PMapplyDefaultHierarchyTemplate