Modified gradle script to allow testing.