optimized gradle configuration