new message generation api and gradle 1.8->1.9 for templates.