-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmaven-pom.gradle
More file actions
42 lines (38 loc) · 1.27 KB
/
maven-pom.gradle
File metadata and controls
42 lines (38 loc) · 1.27 KB
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
apply plugin: 'com.github.dcendents.android-maven'
def packagingType = project.hasProperty("android") ? 'aar' : 'jar'
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
//noinspection GroovyAssignabilityCheck
project {
packaging packagingType
groupId project.group
artifactId project.artifactId
// Add your description here
name project.libraryName
description project.description
url project.siteUrl
// Set your license
licenses {
license {
name project.licenseName
url project.licenseUrl
}
}
developers {
developer {
id project.developerId
name project.developerName
email project.developerEmail
}
}
scm {
connection project.vcsUrl
developerConnection project.vcsUrl
url project.siteUrl
}
}
}
}
}