forked from ddB0515/FlexibleAdapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jfrog-bintray-publish.gradle
45 lines (39 loc) · 1.23 KB
/
jfrog-bintray-publish.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
apply plugin: 'com.jfrog.bintray'
def getRepositoryUsername() {
return getProperties().get('bintray.user')
}
def getRepositoryPassphrase() {
return getProperties().get('bintray.gpg.password')
}
def getApiKey() {
return getProperties().get("bintray.apikey")
}
if (gradle.getStartParameter().getTaskNames().contains("bintrayUpload")) {
println("> Publishing: " + libraryName + " v" + versioning.name)
bintray {
user = getRepositoryUsername()
key = getApiKey()
configurations = ['archives']
pkg {
repo = bintrayRepo
name = bintrayName
desc = libraryDescription
websiteUrl = siteUrl
licenses = allLicenses
vcsUrl = gitUrl
labels = libraryLabels
publish = true
publicDownloadNumbers = true
version {
name = versioning.name
desc = libraryDescription
vcsTag = versioning.name
released = new Date()
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase = getRepositoryPassphrase()
}
}
}
}
}