forked from tasks/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
43 lines (39 loc) · 1.47 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
alias(libs.plugins.protobuf) apply false
alias(libs.plugins.redacted) apply false
}
buildscript {
dependencies {
classpath(libs.gradle)
classpath(libs.google.services)
classpath(libs.firebase.crashlytics.gradle)
classpath(libs.kotlin.gradle)
classpath(libs.dagger.hilt.gradle)
classpath(libs.oss.licenses.plugin)
}
}
tasks.getByName<Wrapper>("wrapper") {
gradleVersion = "8.11.1"
distributionType = Wrapper.DistributionType.ALL
}
allprojects {
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
val composeReports = project.properties["composeMetrics"] ?: project.buildDir.absolutePath
freeCompilerArgs.addAll(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" + composeReports + "/compose-metrics",
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + composeReports + "/compose-metrics",
)
}
}
}