-
Notifications
You must be signed in to change notification settings - Fork 584
/
Copy pathbuild.gradle
79 lines (62 loc) · 1.86 KB
/
build.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.android.library'
apply plugin: 'maven'
apply plugin: 'signing'
android {
compileSdkVersion Integer.parseInt(project.TARGET_SDK_VERSION)
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion MIN_SDK_VERSION
targetSdkVersion project.TARGET_SDK_VERSION
versionCode Integer.parseInt(project.VERSION_CODE)
versionName project.VERSION_NAME
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled false
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
signing {
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
uploadArchives {
configuration = configurations.archives
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: sonatypeRepo) {
authentication(userName: sonatypeUsername, password: sonatypePassword )
}
snapshotRepository(url: snapshotRepo) {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.project {
name POM_NAME
description POM_DESC
packaging 'aar'
url POM_URL
scm {
url POM_SCM_URL
connection POM_SCM_CONN
developerConnection POM_SCM_DEV_CONN
}
licenses {
license {
name LICENCE_NAME
url LICENCE_URL
distribution 'repo'
}
}
developers {
developer {
id POM_DEV
name POM_DEV_NAME
}
}
}
}
}