I just realized that calling `resolvedVariant.attr...
# community-support
s
I just realized that calling
resolvedVariant.attributes.getAttribute(Category.CATEGORY_ATTRIBUTE)
in a Gradle plugin written in Kotlin returns
null
whereas using
resolvedVariant.attributes.getAttribute(Attribute.of("org.gradle.category", String::class.java))
succeeds. Is it expected that the category attribute seems to lose its dedicated type and "coerces" to String?