Aded regex escape for replaceAll in Gradle