@Retention(value=RUNTIME) @Target(value=TYPE) @Incubating public @interface ComponentModel
import org.gradle.model.*
import org.gradle.model.collection.*
interface SampleLibrary extends LibrarySpec {}
class DefaultSampleLibrary extends DefaultLibrarySpec implements SampleLibrary {}
apply plugin: MySamplePlugin
class MySamplePlugin implements Plugin {
void apply(final Project project) {} | Modifier and Type | Required Element and Description |
|---|---|
Class<? extends LibrarySpec> |
implementation
Denotes the implementation class of the LibrarySpec.
|
Class<? extends LibrarySpec> |
type
Denotes the type of the LibrarySpec.
|
public abstract Class<? extends LibrarySpec> type
public abstract Class<? extends LibrarySpec> implementation