I’ve been looking through the Gradle source code for some of the internally distributed plugins (particularly the scala and cpp plugins) as well as the jslib gradle plugin to try and understand how to create a plugin that builds a source set for a specific type of source file.
I’ve been having mixed success as the internal plugins seem to use different layers of functionality such as using Convention rather than Extension objects for configuration as well as using ProjectInternal rather than the Project interface.
Could one of the Gradle developers create a really small example of creating a SourceSet for a markdown (’.md’ files) processing plugin?
e.g.
src/main/markdown/
|-- *.md
|-- *.markdown
src/test/markdown/
|-- *.md
|-- *.markdown
build.gradle
|-- apply plugin: 'marky'