-
Notifications
You must be signed in to change notification settings - Fork 74
Release with bintray
Tadaya Tsuyukubo edited this page Jul 13, 2014
·
2 revisions
Use bintray to sync to maven central
goto Edit Profile => “Accounts” => “Sonatype OSS User"
Reference here for PGP install
Edit Profile => "GPG Signing""
To get ascii armored gpg private/public keys:
- Ascii Armored Public Key
> gpg -a --export [email protected]
- Ascii Armored Private Key
> gpg -a --export-secret-key [email protected]
goto https://bintray.com/bintray/jcenter (link on bin tray home page) => “Include My Package"
add "distributionManagement" to pom.xml
<distributionManagement>
<repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/[MY_BINTRAY_USERNAME]/maven/[ARTIFACT_NAME]</url>
</repository>
</distributionManagement>
<server>
<id>bintray</id>
<username>[MY_BINTRAY_USERNAME]</username>
<password>[MY_API_KEY]</password>
</server>
- MY_BINTRAY_USERNAME, MY_API_KEY can be found on Profile Edit => API Key
- id in server.xml and pom.xml need to match
curl -u [BINTRAY_USERNAME]:[BINTRAY_API_KEY] -X POST -H "Content-Type: application/json" https://api.bintray.com/gpg/[BINTRAY_USERNAME]/maven/[ARTIFACT_NAME]/versions/[VERSION] -d '{
"passphrase": "[GPG_PASS_PHRASE]"
}
'
- goto project page on bintray => click “Maven Central” tab => enter sonatype pass