adapt build to enable publishing to sonatype