@Retention(value=RUNTIME) @Target(value=METHOD) @Incubating public @interface BinaryType
BinarySpec
type.
The following example demonstrates how to register a custom component type using a plugin with a
BinaryType
annotation.
interface SampleBinary extends BinarySpec {} class DefaultSampleBinary extends BaseBinarySpec implements SampleBinary {} apply plugin: MySamplePlugin class MySamplePlugin extends RuleSource { @BinaryType void defineBinaryType(BinaryTypeBuilderbuilder) { builder.defaultImplementation(DefaultSampleBinary) } }