migrating to as and gradle