Add model build test with different gradle releases.