[build] Add support for uploading Maven artifacts to Sonatype
[library] Remove unused class