-
Notifications
You must be signed in to change notification settings - Fork 0
/
bintrayUpload.gradle
39 lines (37 loc) · 1.08 KB
/
bintrayUpload.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
if(hasProperty('bintray_user') && hasProperty('bintray_key') )
{
try
{
bintray {
// property must be set in ~/.gradle/gradle.properties
user = bintray_user
key = bintray_key
publications = [
'maven'] //When uploading configuration files
dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
pkg {
repo = 'ClearControl'
userOrg = 'clearcontrol' //An optional organization name when the repo belongs to one of the user's orgs
name = project.name
desc = project.name
websiteUrl = 'https://github.com/ClearControl'
issueTrackerUrl = 'https://github.com/ClearControl/ClearControl/issues'
vcsUrl = 'https://github.com/ClearControl/ClearControl.git'
licenses = ['GPL-3.0']
publicDownloadNumbers = true
version {
name = project.version //Bintray logical version name
desc = '.'
released = new java.util.Date()
vcsTag = project.version
}
}
}
}
catch(Throwable e)
{
println "Cannot upload to bintray!"
e.printStackTrace()
}
}