Attribute
An attribute is a named entity with a type. It is used in conjunction with a AttributeContainer to provide a type safe container for attributes. This class isn't intended to store the value of an attribute, but only represent the identity of the attribute. It means that an attribute must be immutable and can potentially be pooled. Attributes can be created using the factory method.
Supported attribute value types are: String, Boolean, any subtype of Number, and any type implementing Named. of emits a deprecation warning for any other type — including plain Java Enum types that do not implement Named — and this will become an error in Gradle 10.
Since
3.3
Parameters
<T>
the type of the named attribute