Allow doc jars to be published.
Allow doc jars to be published.

Summary:
And in the process tidy up the `PublishCommand` a little.
Closes https://github.com/facebook/buck/pull/1067

Reviewed By: Coneko

Pulled By: Coneko

fbshipit-source-id: ebb7ab5

romanoid/buck,JoelMarcey/buck,rmaz/buck,marcinkwiatkowski/buck,facebook/buck,vschs007/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,romanoid/buck,robbertvanginkel/buck,marcinkwiatkowski/buck,romanoid/buck,marcinkwiatkowski/buck,kageiit/buck,shybovycha/buck,Addepar/buck,vschs007/buck,LegNeato/buck,clonetwin26/buck,Addepar/buck,brettwooldridge/buck,marcinkwiatkowski/buck,rmaz/buck,brettwooldridge/buck,shybovycha/buck,dsyang/buck,JoelMarcey/buck,brettwooldridge/buck,shybovycha/buck,brettwooldridge/buck,robbertvanginkel/buck,SeleniumHQ/buck,romanoid/buck,vschs007/buck,robbertvanginkel/buck,romanoid/buck,zhan-xiong/buck,SeleniumHQ/buck,k21/buck,marcinkwiatkowski/buck,k21/buck,LegNeato/buck,dsyang/buck,marcinkwiatkowski/buck,ilya-klyuchnikov/buck,rmaz/buck,rmaz/buck,brettwooldridge/buck,LegNeato/buck,rmaz/buck,SeleniumHQ/buck,LegNeato/buck,JoelMarcey/buck,zhan-xiong/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,shybovycha/buck,shs96c/buck,clonetwin26/buck,zpao/buck,zhan-xiong/buck,ilya-klyuchnikov/buck,vschs007/buck,clonetwin26/buck,shs96c/buck,clonetwin26/buck,clonetwin26/buck,facebook/buck,marcinkwiatkowski/buck,clonetwin26/buck,dsyang/buck,zpao/buck,nguyentruongtho/buck,kageiit/buck,robbertvanginkel/buck,robbertvanginkel/buck,ilya-klyuchnikov/buck,Addepar/buck,LegNeato/buck,shybovycha/buck,dsyang/buck,JoelMarcey/buck,romanoid/buck,ilya-klyuchnikov/buck,Addepar/buck,clonetwin26/buck,ilya-klyuchnikov/buck,SeleniumHQ/buck,SeleniumHQ/buck,JoelMarcey/buck,vschs007/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,shs96c/buck,romanoid/buck,dsyang/buck,nguyentruongtho/buck,SeleniumHQ/buck,romanoid/buck,k21/buck,clonetwin26/buck,k21/buck,LegNeato/buck,zpao/buck,kageiit/buck,LegNeato/buck,ilya-klyuchnikov/buck,romanoid/buck,zhan-xiong/buck,nguyentruongtho/buck,facebook/buck,facebook/buck,JoelMarcey/buck,brettwooldridge/buck,shybovycha/buck,robbertvanginkel/buck,zhan-xiong/buck,Addepar/buck,clonetwin26/buck,brettwooldridge/buck,rmaz/buck,dsyang/buck,zpao/buck,vschs007/buck,Addepar/buck,romanoid/buck,rmaz/buck,dsyang/buck,shybovycha/buck,zpao/buck,zpao/buck,vschs007/buck,zhan-xiong/buck,shybovycha/buck,k21/buck,SeleniumHQ/buck,kageiit/buck,JoelMarcey/buck,shybovycha/buck,marcinkwiatkowski/buck,vschs007/buck,romanoid/buck,zhan-xiong/buck,Addepar/buck,LegNeato/buck,shybovycha/buck,brettwooldridge/buck,Addepar/buck,Addepar/buck,dsyang/buck,marcinkwiatkowski/buck,zhan-xiong/buck,shs96c/buck,rmaz/buck,JoelMarcey/buck,k21/buck,zhan-xiong/buck,robbertvanginkel/buck,dsyang/buck,k21/buck,LegNeato/buck,ilya-klyuchnikov/buck,vschs007/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,vschs007/buck,facebook/buck,shs96c/buck,JoelMarcey/buck,clonetwin26/buck,k21/buck,rmaz/buck,nguyentruongtho/buck,ilya-klyuchnikov/buck,facebook/buck,kageiit/buck,robbertvanginkel/buck,robbertvanginkel/buck,marcinkwiatkowski/buck,kageiit/buck,Addepar/buck,zhan-xiong/buck,rmaz/buck,brettwooldridge/buck,brettwooldridge/buck,shs96c/buck,LegNeato/buck,Addepar/buck,LegNeato/buck,vschs007/buck,kageiit/buck,shs96c/buck,rmaz/buck,k21/buck,zhan-xiong/buck,LegNeato/buck,shs96c/buck,clonetwin26/buck,dsyang/buck,facebook/buck,shs96c/buck,shs96c/buck,dsyang/buck,romanoid/buck,shybovycha/buck,clonetwin26/buck,zhan-xiong/buck,JoelMarcey/buck,dsyang/buck,SeleniumHQ/buck,vschs007/buck,romanoid/buck,vschs007/buck,dsyang/buck,shs96c/buck,JoelMarcey/buck,SeleniumHQ/buck,robbertvanginkel/buck,ilya-klyuchnikov/buck,shs96c/buck,brettwooldridge/buck,SeleniumHQ/buck,k21/buck,nguyentruongtho/buck,rmaz/buck,rmaz/buck,marcinkwiatkowski/buck,SeleniumHQ/buck,ilya-klyuchnikov/buck,zhan-xiong/buck,k21/buck,clonetwin26/buck,robbertvanginkel/buck,shybovycha/buck,Addepar/buck,robbertvanginkel/buck,k21/buck,Addepar/buck,k21/buck,zpao/buck,SeleniumHQ/buck,nguyentruongtho/buck,brettwooldridge/buck,LegNeato/buck,shybovycha/buck,shs96c/buck,nguyentruongtho/buck,robbertvanginkel/buck,marcinkwiatkowski/buck