forked from instructure/CanvasAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
170 lines (145 loc) · 4.5 KB
/
Copy pathbuild.gradle
File metadata and controls
170 lines (145 loc) · 4.5 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
//This needs to be at the top in order to build on Jenkins
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.2'
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
minSdkVersion 9
targetSdkVersion 22
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'LICENSE.txt'
}
lintOptions {
disable 'InvalidPackage'
abortOnError false
}
productFlavors {
}
buildTypes {
debug {
minifyEnabled false
shrinkResources false
}
release {
minifyEnabled false
shrinkResources false
}
}
sourceSets {
test.setRoot("src/androidTest")
}
}
afterEvaluate { project ->
android.libraryVariants.each { variant ->
tasks.getByName("test${ variant.name.capitalize()}") {
dependsOn "assemble${ variant.name.capitalize()}"
}
}
}
dependencies {
compile('com.mobprofs:retrofit-simplexmlconverter:1.0') {
exclude module: 'stax'
exclude module: 'stax-api'
exclude module: 'xpp3'
}
compile 'com.squareup.okhttp:okhttp-urlconnection:2.1.0'
compile 'com.squareup.okhttp:okhttp:2.1.0'
compile 'com.squareup.retrofit:retrofit:1.8.0'
compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5'
compile (group: 'org.apache.httpcomponents' , name: 'httpmime' , version: '4.3.5') {
exclude module: 'org.apache.httpcomponents:httpclient'
}
compile 'com.netflix.rxjava:rxjava-android:0.20.6'
testCompile 'junit:junit:4.12'
testCompile 'org.robolectric:robolectric:3.0-rc2'
}
//Do some maven stuff
apply plugin: 'maven'
apply plugin: 'signing'
version = "1.2.0"
group = "com.instructure"
configurations {
archives {
extendsFrom configurations.default
}
all*.exclude group: 'commons-logging', module: 'commons-logging'
all*.exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
signing {
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
uploadArchives {
configuration = configurations.archives
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
//Remove everything below this for maven builds.
//repository(url: sonatypeRepo) {
// authentication(userName: sonatypeUsername,
// password: sonatypePassword)
//}
//Remove everything above this for maven builds.
pom.project {
name 'CanvasAPI'
packaging 'aar'
description 'CanvasAPI is a library that will help you integrate your own third party app with Canvas by Instructure.'
url 'https://github.com/instructure/CanvasAPI'
scm {
url 'git@github.com:instructure/CanvasAPI.git'
connection 'scm:git:git@github.com:instructure/CanvasAPI.git'
developerConnection 'scm:git:git@github.com:instructure/CanvasAPI.git'
}
licenses {
license {
name 'MIT License'
url 'http://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
id 'tneedham'
name 'Trevor Needham'
email 'tneedham@instructure.com'
}
developer {
id 'brady'
name 'Brady Larson'
email 'brady@instructure.com'
}
developer {
id 'hhoang'
name 'Hoa Hoang'
email 'hhoang@instructure.com'
}
developer {
id 'mrice'
name 'Matthew Rice'
email 'mrice@instructure.com'
}
developer {
id 'dwilloughby'
name 'Dan Willoughby'
email 'dwilloughby@instructure.com'
}
}
}
}
}