-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
50 lines (46 loc) · 1.94 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
buildscript {
dependencies {
classpath(libs.google.firebase.crsahlytics.gradle)
classpath(libs.google.gms.services.gradle)
classpath(libs.moko.resources.generator)
classpath(libs.moko.network.generator)
}
}
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.gradle.buildconfig) apply false
alias(libs.plugins.kotlin.compose.gradle) apply false
// klibs - core
alias(libs.plugins.klibs.gradle.detekt) apply false
alias(libs.plugins.klibs.gradle.detekt.compose) apply false
alias(libs.plugins.klibs.gradle.dokka.root) apply false
alias(libs.plugins.klibs.gradle.dokka.module) apply false
alias(libs.plugins.klibs.gradle.java.core) apply false
alias(libs.plugins.klibs.gradle.stub.javadoc) apply false
alias(libs.plugins.klibs.gradle.publication) apply false
alias(libs.plugins.klibs.gradle.rootinfo) apply false
// klibs - android
alias(libs.plugins.klibs.gradle.android.core) apply false
alias(libs.plugins.klibs.gradle.android.compose) apply false
alias(libs.plugins.klibs.gradle.android.apk.sign) apply false
alias(libs.plugins.klibs.gradle.android.apk.name) apply false
alias(libs.plugins.klibs.gradle.android.publication) apply false
alias(libs.plugins.klibs.gradle.android.namespace) apply false
}
apply(plugin = "ru.astrainteractive.gradleplugin.detekt")
/**
* This function will delete every ./build folder
* ./gradlew :cleanProject
*/
tasks.register("cleanProject", Delete::class) {
fun clearProject(project: Project) {
project.childProjects.values.forEach(::clearProject)
delete(project.buildDir)
}
clearProject(rootProject)
}