BinaryType (Gradle API 2.9)
Date: 2015-11-17

org.gradle.platform.base

## Annotation Type BinaryType

-     @Retention(value=RUNTIME)
      @Target(value=METHOD)
      @Incubating
      public @interface BinaryType

  Declares that a custom `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(BinaryTypeBuilder builder) {
               builder.defaultImplementation(DefaultSampleBinary)
           }
       }