-
Notifications
You must be signed in to change notification settings - Fork 3
/
installv1.gradle
48 lines (43 loc) · 1.5 KB
/
installv1.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
apply plugin: 'com.github.dcendents.android-maven'
group = publishedGroupId // Maven Group ID for the artifact
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
groupId publishedGroupId
artifactId artifact
// Add your description here
name libraryName
description rootProject.ext.libraryDescription
url rootProject.ext.siteUrl
// Set your license
licenses {
license {
name rootProject.ext.licenseName
url rootProject.ext.licenseUrl
}
}
developers {
developer {
id rootProject.ext.developerId
name rootProject.ext.developerName
email rootProject.ext.developerEmail
}
}
scm {
connection rootProject.ext.gitUrl
developerConnection rootProject.ext.gitUrl
url rootProject.ext.siteUrl
}
}
whenConfigured {
p ->
p.dependencies = p.dependencies.findAll {
dep -> dep.scope != "test"
}
}
}
}
}