forked from wordpress-mobile/WordPress-FluxC-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (67 loc) · 1.84 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
buildscript {
ext.kotlinVersion = '1.4.10'
ext.kotlinCoroutinesVersion = '1.3.9'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.automattic.android:fetchstyle:1.1'
}
}
apply plugin: 'com.automattic.android.fetchstyle'
allprojects {
apply plugin: 'checkstyle'
repositories {
google()
jcenter()
maven { url "http://dl.bintray.com/terl/lazysodium-maven" }
}
task checkstyle(type: Checkstyle) {
source 'src'
classpath = files()
}
checkstyle {
toolVersion = '8.3'
configFile file("${project.rootDir}/config/checkstyle.xml")
}
}
subprojects {
configurations.all {
resolutionStrategy {
forcedModules = [
// Needed for com.nhaarman:mockito-kotlin-kt1.1
// Can possibly be dropped when v2 of mockito-kotlin is released
"org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion",
"org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
]
}
}
configurations {
ktlint
}
dependencies {
ktlint 'com.github.shyiko:ktlint:0.31.0'
}
task ktlint(type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "src/**/*.kt"
}
task ktlintFormat(type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "-F", "src/**/*.kt"
}
}
ext {
daggerVersion = '2.22.1'
wellSqlVersion = '1.6.0'
supportLibraryVersion = '27.1.1'
arch_paging_version = '1.0.1'
arch_lifecycle_version = '1.1.1'
arch_core_version = '2.0.1'
appcompat_version = '1.0.2'
mockitoVersion = '3.3.3'
}