forked from neuhalje/bouncy-gpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bintray.gradle
102 lines (83 loc) · 2.67 KB
/
bintray.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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://neuhalje.github.io/bouncy-gpg/'
}
licenses {
license {
name 'Apache-2.0'
url 'https://www.apache.org/licenses/LICENSE-2.0.html'
}
}
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
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("bintrayUpload") }
useGpgCmd()
sign configurations.archives
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
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 = bintray_Username
key = bintray_Password
dryRun = false //bintray_dryRun//[Default: false] Whether to run this as dry-run, without deploying
publish = true //bintray_publish//[Default: false] Whether version should be auto published after an upload
override = true //[Default: false] Whether to override version artifacts already published
pkg {
repo = 'maven'
name = 'bouncy-gpg'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/neuhalje/bouncy-gpg.git'
websiteUrl = 'https://neuhalje.github.io/bouncy-gpg/'
labels = ['batch-job', 'bouncycastle', 'bouncy-castle', 'gpg', 'gnupg', 'pgp', 'security', 'encryption', 'decryption', 'rfc4880']
githubRepo = 'neuhalje/bouncy-gpg'
githubReleaseNotesFile = 'README.md'
version {
name = property('version')
desc = 'Make using Bouncy Castle with OpenPGP fun again!'
released = new Date()
vcsTag = "release/v" + property('version')
gpg {
sign = true
}
mavenCentralSync {
sync = true
}
}
}
publications = ['maven']
}