I've generated a plugin that can be used as a base for implementing compilers of all stripes: http://github.com/RobertFischer/Gradle-Compiler-Plugins
Also, there's a plugin specifically for Headius' Mirah language based on it: http://github.com/RobertFischer/Gradle-Mirah-Compiler ~~ Robert.