-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (59 loc) · 2.02 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.versions = [
'compileSdk' : 28,
'minSdk' : 21,
'targetSdk' : 28,
'kotlin' : '1.3.30',
'androidx' : '1.0.2',
'x_recycler_view' : '1.0.0',
'x_card_view' : '1.0.0',
'androidx_lifecycle': '2.0.0',
'material' : '1.0.0',
'constraintLayout' : '2.0.0-alpha2',
'navigation' : '1.0.0-alpha06',
'room' : '2.1.0-alpha01',
'dagger' : '2.16',
'retrofit' : '2.4.0',
'retrofitCoroutines': '0.9.2',
'okhttp3' : '3.10.0',
'stetho' : '1.5.0',
'junit' : '4.12',
'test_runner' : '1.1.0-beta02',
'test_espresso' : '3.1.0-beta02',
'ktlint' : '0.29.0',
'coreKtx' : '1.0.1',
'coroutines' : '1.1.1',
]
repositories {
google()
jcenter()
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "com.diffplug.gradle.spotless" version "3.14.0"
}
allprojects {
repositories {
google()
jcenter()
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap' }
}
}
subprojects {
apply plugin: 'com.diffplug.gradle.spotless'
spotless {
kotlin {
target "**/*.kt"
ktlint(versions.ktlint)
licenseHeaderFile(project.rootProject.file('scripts/copyright.kt'), '^(package|//startfile)')
}
}
}