-
Notifications
You must be signed in to change notification settings - Fork 9
/
maven_push.gradle
79 lines (66 loc) · 2.06 KB
/
maven_push.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
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
version = POM_VERSION
group= POM_GROUP_ID
bintray (){
user = System.env.BINTRAY_USER
key = System.env.BINTRAY_APIKEY
configurations = ['archives']
pkg {
repo = 'maven'
name = POM_NAME
desc = POM_DESCRIPTION
websiteUrl = POM_URL
issueTrackerUrl = POM_URL+'/issues'
vcsUrl = POM_SCM_CONNECTION
licenses = ["Apache-2.0"]
labels = ['android']
publish = true
publicDownloadNumbers = true
version {
vcsTag = POM_VERSION
desc = POM_DESCRIPTION
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase =System.env.BINTRAY_GPG_PASSWORD //"$System.env.BINTRAY_GPG_PASSWORD"
//Optional. The passphrase for GPG signing'
}
}
}
}
install {
repositories.mavenInstaller {
//This generates POM.xml with proper parameters
pom {
project {
packaging POM_PACKAGING
groupId POM_GROUP_ID
artifactId POM_ARTIFACT_ID
// Add your description here
name POM_NAME
description POM_DESCRIPTION
url POM_URL
// Set your license
licenses {
license {
name POM_LICENSE_NAME
url POM_LICENSE_URL
distribution POM_LICENCE_DIST
}
}
developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
email POM_DEVELOPER_EMAIL
}
}
scm {
connection POM_SCM_CONNECTION
developerConnection POM_SCM_DEV_CONNECTION
url POM_SCM_URL
}
}
}
}
}