Axel Levy
08/17/2025, 3:13 PMapplyHierarchyTemplate
(or applyDefaultHierarchyTemplate
). It raises me a circular dependencies error when I try to configure cinterop.
I've investigated a bit, and it seems that just trying to use both applyHierarchyTemplate
and mingwX64(native)
in the kotlin {}
block of build.gradle.kts
raises the issue:
@OptIn(ExperimentalKotlinGradlePluginApi::class)
applyDefaultHierarchyTemplate {}
mingwX64("native")
Does someone has an idea why ?Taush Sampley
08/17/2025, 9:33 PMapplyHierarchyTemplate {
withMingw()
}
which gives you full control over the hierarchy and template applied. No circular dependency here. Note you preface each target with “with”.Axel Levy
08/17/2025, 9:39 PM