Package org.gradle.platform.base
Annotation Type Variant
-
@Retention(RUNTIME) @Target(METHOD) @Incubating public @interface Variant
Declares that a property represents a variant dimension. Variants are used in dependency resolution to discriminate between various binaries that may match the requirements (such as a platform, a build type, ...). This annotation must be set on a getter. The return type of the getter must either be aString
or a class implementingNamed
.- Since:
- 2.6