forked from xing/xing-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
131 lines (114 loc) · 4.68 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
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
/*
* Copyright (C) 2016 XING AG (http://xing.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
repositories {
jcenter()
maven {
url 'https://plugins.gradle.org/m2/'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'net.ltgt.gradle:gradle-apt-plugin:0.9'
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
google()
}
project.ext {
/** Contains global constants shared with all modules. */
versions = [
androidCompileSdk: 26,
androidBuildTools: '27.0.3',
androidMinSdk : 14,
androidTargetSdk : 23,
androidSupportLib: '27.1.1',
okHttp : '3.10.0',
kotlin_version : '1.2.10',
moshiVersion : '1.6.0'
]
/** Used dependencies. */
libraries = [
// Android
supportAnnotations : "com.android.support:support-annotations:$versions.androidSupportLib",
supportV4 : "com.android.support:support-v4:$versions.androidSupportLib",
supportAppCompat : "com.android.support:appcompat-v7:$versions.androidSupportLib",
supportDesign : "com.android.support:design:$versions.androidSupportLib",
supportCardView : "com.android.support:cardview-v7:$versions.androidSupportLib",
supportRecyclerView : "com.android.support:recyclerview-v7:$versions.androidSupportLib",
android : 'com.google.android:android:4.1.1.4',
kotlin : "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin_version",
// Ok stack
okhttp : "com.squareup.okhttp3:okhttp:$versions.okHttp",
okhttpLoggingInterceptor : "com.squareup.okhttp3:logging-interceptor:$versions.okHttp",
okio : 'com.squareup.okio:okio:1.14.0',
moshi : "com.squareup.moshi:moshi:$versions.moshiVersion",
moshiKotlinCodegen : "com.squareup.moshi:moshi-kotlin-codegen:$versions.moshiVersion",
moshiLazyAdapters : 'com.serjltt.moshi:moshi-lazy-adapters:2.2',
// Additional network libraries
singpost : 'oauth.signpost:signpost-core:1.2.1.2@jar',
glide : 'com.github.bumptech.glide:glide:3.6.0',
// ReactiveX
rxjava2 : 'io.reactivex.rxjava2:rxjava:2.1.9',
// Test
junit : 'junit:junit:4.12',
assertj : 'org.assertj:assertj-core:1.7.0',
mockito : 'org.mockito:mockito-all:1.10.19',
robolectric : 'org.robolectric:robolectric:3.1.2',
robolectircSupport : 'org.robolectric:shadows-support-v4:3.1.2',
mockWebServer : "com.squareup.okhttp3:mockwebserver:$versions.okHttp",
commonsIo : 'commons-io:commons-io:2.4',
apacheCommons3 : 'org.apache.commons:commons-lang3:3.4'
]
}
}
subprojects { project ->
apply plugin: 'checkstyle'
checkstyle {
toolVersion '6.0'
}
task checkstyle(type: Checkstyle) {
group 'verification'
configFile rootProject.file('checkstyle.xml')
source = ['src']
ignoreFailures false
showViolations true
include '**/*.java'
exclude '**/R.java'
exclude '**/BuildConfig.java'
classpath = files()
configProperties = [
'proj.module.dir' : projectDir.absolutePath,
'checkstyle.cache.file': './build/cache/checkstyle-cache'
]
}
afterEvaluate {
if (project.tasks.findByName('check')) {
check.dependsOn('checkstyle')
}
}
apply plugin: 'idea'
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
}