added auto function to gradle