Plugin to create project directories

I have created a plugin which creates a project’s source, test and resources directories, including package structure, based on the language plugin applied to the project.

Currently works for java, groovy, scala and android (with flavours).

Sharing here as others my find it useful or may have ideas for enhancement.

apply plugin: 'groovy'
apply plugin: 'jvmsrc'
  jvmsrc {
    packageName "com.mycompany.myproject.mymodule"

Running the task:

./gradlew createJvmSrcDirs