-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
62 lines (52 loc) · 1.63 KB
/
build.gradle.kts
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath(Deps.android_gradle_plugin)
classpath(Deps.SqlDelight.gradle)
classpath(Deps.cocoapodsext)
classpath("org.jetbrains.kotlin:kotlin-serialization:${Versions.kotlin}")
classpath(Deps.google_services)
classpath("com.google.firebase:firebase-crashlytics-gradle:2.5.2")
classpath("com.github.jengelman.gradle.plugins:shadow:2.0.4")
classpath(kotlin("gradle-plugin", Versions.kotlin))
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build gradle files
}
}
plugins {
id("org.jlleitschuh.gradle.ktlint") version Versions.ktlint_gradle_plugin
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven(url = "https://kotlin.bintray.com/kotlinx")
maven(url = "https://dl.bintray.com/ekito/koin")
maven(url = "https://oss.sonatype.org/content/repositories/snapshots/")
}
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
ktlint {
version.set("0.37.2")
enableExperimentalRules.set(true)
verbose.set(true)
filter {
exclude { it.file.path.contains("build/") }
}
}
afterEvaluate {
tasks.named("check").configure {
dependsOn(tasks.getByName("ktlintCheck"))
}
}
}
tasks.register<Delete>("clean") {
delete(rootProject.buildDir)
}