Added GPG Signing and Maven Central Sync

This commit is contained in:
Robert Winkler
2015-02-20 09:47:47 +01:00
parent 0833a74c37
commit d165a0f842
2 changed files with 12 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ The project requires at least JDK 7.
== Usage
=== Adding Swagger2Markup to your project
The project is published in JCenter and Maven Central.
==== Maven

View File

@@ -29,6 +29,8 @@ if (!project.hasProperty('bintrayApiKey')) ext.bintrayApiKey = ''
bintray {
user = project.bintrayUsername
key = project.bintrayApiKey
dryRun = true //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
publications = ['mavenJava']
pkg {
repo = 'maven'
@@ -40,6 +42,15 @@ bintray {
licenses = ['Apache-2.0']
version {
vcsTag = project.version
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase = project.gpgPassphrase //Optional. The passphrase for GPG signing'
}
mavenCentralSync {
sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.
user = ossUser //OSS user token
password = ossPassword //OSS user password
}
}
}
}