forked from mariosangiorgio/RateMyApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (76 loc) · 2.2 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
80
81
82
83
84
85
86
87
88
89
90
91
['android-library', 'signing', 'maven'].each {
apply plugin: it
}
group = 'com.mariosangiorgio'
version = '1.3'
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
defaultConfig {
minSdkVersion 11
targetSdkVersion 16
}
buildTypes {
release {
runProguard false
proguardFile 'proguard-rules.txt'
proguardFile getDefaultProguardFile('proguard-android.txt')
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
}
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)
}
pom.project {
name 'RateMyApp Android Library'
packaging 'aar'
description 'An Android module to kindly ask users to rate your application.'
url 'https://github.com/mariosangiorgio/RateMyApp'
scm {
url 'scm:[email protected]:mariosangiorgio/RateMyApp'
connection 'scm:[email protected]:mariosangiorgio/RateMyApp.git'
developerConnection 'scm:[email protected]:mariosangiorgio/RateMyApp.git'
}
licenses {
license {
name 'The MIT License (MIT)'
url 'https://github.com/mariosangiorgio/RateMyApp/blob/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'mariosangiorgio'
name 'Mario Sangiorgio'
email '[email protected]'
}
}
}
}
}