fixing doFirst block so we dont get duplicate jars after building