-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
61 lines (58 loc) · 1.77 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
buildscript {
ext.versions = [
'kotlin' : '1.3.70',
'compile_sdk' : 29,
'target_sdk' : 29,
'min_sdk' : 16,
'androidx' : [
'appcompat' : '1.1.0',
'browser' : '1.2.0',
'constraint_layout': '2.0.0-beta4',
'core_ktx' : '1.2.0',
'dynamicanimation' : '1.1.0-alpha03'
],
'play_services': '17.0.0',
'ktlint' : '0.36.0',
'rxbinding' : '3.1.0',
'rxjava' : '2.2.19',
'rxkotlin' : '2.4.0',
'rxlint' : '1.7.5',
'leakcanary' : '2.2'
]
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.github.triplet.gradle:play-publisher:2.7.2'
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$versions.kotlin"
}
}
plugins {
id 'com.diffplug.gradle.spotless' version '3.27.2'
id 'com.github.ben-manes.versions' version '0.28.0'
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = '1.8'
allWarningsAsErrors = true
}
}
apply plugin: 'com.diffplug.gradle.spotless'
spotless {
kotlin {
target '**/*.kt'
ktlint(versions.ktlint).userData(['disabled_rules': 'import-ordering'])
}
}
}