I'm using the custom hierarchy API in my project, so I hope it's not going anywhere. In 1.9.20 it did change from:
targetHierarchy.custom { ... }
to:
applyHierarchyTemplate { ... }
The default hierarchy API changed from:
targetHierarchy.default()
to:
applyDefaultHierarchyTemplate()
which is no longer experimental.
There is also still an experimental version of the default hierarchy template where you can extend with additional groups:
applyDefaultHierarchyTemplate { ... }
This extension API and
applyHierarchyTemplate
are still marked
ExperimentalKotlinGradlePluginApi
though.