43de81e4c8
In publishing, use attribute containers of detached configuration instead of HierarchyAttributeContainer, which is rejected by Gradle for not being an AttributeContainerInternal. Using attributes of a detached configuration is a small and conservative fix; we may need to either not filter the attributes, which will lead to [ProjectLocalConfigurations.ATTRIBUTE] being published in the Gradle module metadata, which will potentially complicate our attributes schema migration, or create proper, non-detached configurations for publishing that are separated from the configurations used for project-to-project dependencies. Issue #KT-29758 Fixed