-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
59 lines (52 loc) · 1.74 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
buildscript {
dependencies {
classpath("com.android.tools.build:gradle:3.4.0")
classpath("org.jetbrains.kotlin:kotlin-serialization:1.8.21")
classpath("com.google.gms:google-services:4.3.14")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.2")
classpath("org.jacoco:org.jacoco.core:0.8.8")
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.0.0" apply false
id("com.android.library") version "8.0.0" apply false
id("org.jetbrains.kotlin.android") version "1.8.20" apply false
id("com.diffplug.spotless") version ("5.17.1")
id("com.google.dagger.hilt.android") version "2.44" apply false
}
allprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "17"
}
}
}
subprojects {
apply(plugin = "com.diffplug.spotless")
spotless {
kotlin {
target("**/*.kt")
ktlint().userData(mapOf("disabled_rules" to "filename"))
licenseHeaderFile(
rootProject.file("${project.rootDir}/spotless/copyright.kt"),
"^(package|object|import|interface)"
)
trimTrailingWhitespace()
endWithNewline()
}
format("xml") {
target()
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
format("misc") {
target("**/*.md", "**/.gitignore")
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
apply(plugin = "com.diffplug.spotless")
}
}