forked from square/anvil
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle.kts
24 lines (23 loc) · 862 Bytes
/
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
plugins {
alias(libs.plugins.agp.application) apply false
alias(libs.plugins.agp.library) apply false
alias(libs.plugins.gradlePublish) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.dokka) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.kapt) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.mavenPublishBase) apply false
id("conventions.root")
}
// Delete orphaned files from previous builds. These directories aren't used by a current project,
// so `./gradlew clean` doesn't touch them.
tasks.register("deleteOrphanedDirs", Delete::class) {
delete(
"buildSrc",
"gradle-plugin-build-logic",
"build-logic/.gradle",
"build-logic/build",
)
}
tasks.prepareKotlinBuildScriptModel { dependsOn("deleteOrphanedDirs") }