forked from starifly/NekoBoxForAndroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
30 lines (27 loc) · 852 Bytes
/
Copy pathbuild.gradle.kts
File metadata and controls
30 lines (27 loc) · 852 Bytes
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.google.devtools.ksp") version "2.3.9" apply false
id("com.diffplug.spotless") version "6.25.0"
}
allprojects {
apply(from = "${rootProject.projectDir}/repositories.gradle.kts")
}
// Spotless applies a base plugin that already provides a `clean` task, so only register ours
// if it isn't present (avoids "task with that name already exists").
if (tasks.findByName("clean") == null) {
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
}
spotless {
kotlin {
target("**/*.kt")
targetExclude("**/build/**")
ktlint("1.2.1")
}
kotlinGradle {
target("**/*.gradle.kts")
targetExclude("**/build/**")
ktlint("1.2.1")
}
}