First attempt at porting plugin to gradle 1.9.