Change script to gradle