[JENKINS-17058] add readResolve on BapSshHostConfiguration, fix dep

New submission of Alexander Fisher's patch to fix JENKINS-17058 - a longstanding bug that prevents a lot of users to upgrade their Jenkins.

Based on this patch, I only set the org.jenkins-ci.plugins:publish-over version to 0.17, as the 0.18-SNAPSHOT does not exist anymore.