moved to using currentVersion variable so that we can push to snapshot jfrog server.
Cleaned newlines.
Fixed publishing issues for artifactory.