forked from fast4x/RiMusic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
32 lines (27 loc) · 897 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
25
26
27
28
29
30
31
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath("com.android.tools.build", "gradle", "8.3.1")
classpath(kotlin("gradle-plugin", libs.versions.kotlin.get()))
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
if (project.findProperty("enableComposeCompilerReports") == "true") {
arrayOf("reports", "metrics").forEach {
freeCompilerArgs = freeCompilerArgs + listOf(
"-P", "plugin:androidx.compose.compiler.plugins.kotlin:${it}Destination=${project.buildDir.absolutePath}/compose_metrics"
)
}
}
}
}
}