-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.gradle
47 lines (41 loc) · 1.05 KB
/
install.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
apply plugin: 'maven-publish'
group = PROJ_GROUP // Maven Group ID for the artifact
def pomConfig = {
licenses {
license {
name PROJ_LICENSE_NAME
url PROJ_LICENSE_URL
distribution "repo"
}
}
developers {
developer {
id DEVELOPER_ID
name DEVELOPER_NAME
email DEVELOPER_EMAIL
}
}
scm {
url PROJ_WEBSITEURL
connection PROJ_VCSURL
developerConnection PROJ_ISSUETRACKERURL
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId PROJ_GROUP
artifactId PROJ_ARTIFACTID
pom {
packaging 'aar'
}
pom.withXml {
def root = asNode()
root.appendNode('name', PROJ_NAME)
root.appendNode('description', PROJ_DESCRIPTION)
root.appendNode('url', PROJ_VCSURL)
root.children().last() + pomConfig
}
}
}
}