Remove Groovy, upgrade to gradle 2.1, try define task types and results