-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
build.gradle.kts
43 lines (38 loc) · 1.38 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
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.4.1")
classpath("com.google.dagger:hilt-android-gradle-plugin:2.46")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22")
classpath("com.diffplug.spotless:spotless-plugin-gradle:6.20.0")
classpath("com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1")
}
}
subprojects {
repositories {
google()
mavenCentral()
}
pluginManager.apply("com.diffplug.spotless")
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
// by default the target is every '.kt' and '.kts` file in the java sourcesets
ktfmt() // has its own section below
ktlint() // has its own section below
diktat() // has its own section below
prettier() // has its own section below
licenseHeaderFile(rootProject.file("spotless/copyright.kt")) // or licenseHeaderFile
}
kotlinGradle {
target("*.gradle.kts") // default target for kotlinGradle
ktlint() // or ktfmt() or prettier()
}
}
}
plugins {
id("com.github.ben-manes.versions") version "0.47.0"
id("com.google.devtools.ksp") version "1.9.22-1.0.17" apply false
}