forked from simpledotorg/simple-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (54 loc) · 1.65 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
63
64
import com.diffplug.spotless.LineEnding.UNIX
buildscript {
repositories {
google()
mavenCentral()
maven(url = "https://jitpack.io")
}
dependencies {
classpath("com.android.tools.build:gradle:${versions.agp}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}")
classpath("io.sentry:sentry-android-gradle-plugin:${versions.sentryGradlePlugin}")
classpath("com.google.gms:google-services:${versions.googleServices}")
classpath("com.google.firebase:perf-plugin:${versions.firebasePerformancePlugin}")
classpath(files("./buildTooling/room-metadata-generator-${versions.roomMetadataGenerator}.jar"))
}
}
plugins {
id("com.diffplug.spotless") version versions.spotless
}
allprojects {
repositories {
google()
mavenCentral()
// Left to support migration away from JCenter, do not add any new dependency inclusions here.
// See: https://jeroenmols.com/blog/2021/02/04/migratingjcenter/
jcenter {
content {
// :app
includeModule("com.facebook.flipper", "flipper")
includeModule("com.facebook.flipper", "flipper-network-plugin")
includeModule("ru.egslava", "MaskedEditText")
}
}
}
}
subprojects {
apply(plugin = "com.diffplug.spotless")
// https://github.com/diffplug/spotless/tree/master/plugin-gradle
spotless {
lineEndings = UNIX
kotlin {
ktlint(versions.ktlint).userData(mapOf(
"indent_style" to "space",
"indent_size" to "2",
"continuation_indent_size" to "4"
))
trimTrailingWhitespace()
endWithNewline()
}
}
}
tasks.named<Delete>("clean") {
delete(rootProject.buildDir)
}