In the gradle source (commit 66d8c684), one of the sample examples is not working (using gradle 2.10):
$ cd subprojects/docs/src/samples/customModel/languageType
$ gradle tasks
...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'languageType'.
> Exception thrown while executing model rule: ComponentBinaryRules#initializeBinarySourceSets > components.docs.getBinaries() > beforeEach()
> Exception thrown while executing model rule: docs(sample.documentation.DocumentationComponent) { ... } @ build.gradle line 26, column 9 > create(reference)
> Factory registration for 'sample.documentation.TextSourceSet' is invalid because it doesn't extend an interface with a default implementation
Is this example supposed to work?
Also, I see no @Model
or @Mutate
annotation, so is this example one we should use for learning the new model dsl? What is this example trying to teach?
Thanks,
Martin