Added gradle replace tag to Reference class
Update build.properties