-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish on bintray (and then jcenter)
- Loading branch information
Showing
6 changed files
with
106 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
def pomConfig = { | ||
|
||
scm { | ||
connection 'scm:git:https://github.com/neuhalje/bouncy-gpg.git' | ||
developerConnection 'scm:git:https://github.com/neuhalje/bouncy-gpg.git' | ||
url 'https://github.com/neuhalje/bouncy-gpg/' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'WTFPL' | ||
url 'http://www.wtfpl.net/' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'neuhalje' | ||
name 'Jens Neuhalfen' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives javadocJar, sourcesJar | ||
} | ||
|
||
signing { | ||
sign configurations.archives | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
groupId group | ||
artifactId 'bouncy-gpg' | ||
version property('version') | ||
|
||
pom.withXml { | ||
def root = asNode() | ||
root.appendNode('description', 'Make using Bouncy Castle with OpenPGP fun again!') | ||
root.appendNode('name', 'bouncy-gpg') | ||
root.appendNode('url', 'https://github.com/neuhalje/bouncy-gpg') | ||
root.children().last() + pomConfig | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = property('bintray_Username') | ||
key = property('bintray_Password') | ||
|
||
dryRun = false //[Default: false] Whether to run this as dry-run, without deploying | ||
publish = true //[Default: false] Whether version should be auto published after an upload | ||
override = false //[Default: false] Whether to override version artifacts already published | ||
|
||
pkg { | ||
repo = 'maven' | ||
name = 'bouncy-gpg' | ||
licenses = ['WTFPL'] | ||
vcsUrl = 'https://github.com/neuhalje/bouncy-gpg.git' | ||
websiteUrl = 'https://github.com/neuhalje/bouncy-gpg' | ||
labels = ['batch-job', 'bouncycastle', 'bouncy-castle', 'gpg', 'gnupg', 'security', 'encryption', 'decryption'] | ||
|
||
version { | ||
name = property('version') | ||
desc = 'Make using Bouncy Castle with OpenPGP fun again!' | ||
released = new Date() | ||
vcsTag = property('version') | ||
} | ||
} | ||
|
||
publications = ['maven'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'bouncy-gpg' |