added tasks to run gradle and/or agent from gradle