First version wasn't very 'DRY'. Using a cutom gradle task to make this more extendable.