ViMusic/build.gradle.kts

31 lines
895 B
Plaintext
Raw Normal View History

2022-06-02 16:59:18 +00:00
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
2022-08-29 08:43:11 +00:00
classpath("com.android.tools.build", "gradle", "7.2.2")
2022-06-30 21:48:32 +00:00
classpath(kotlin("gradle-plugin", libs.versions.kotlin.get()))
2022-06-02 16:59:18 +00:00
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
2022-08-26 08:10:15 +00:00
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"
)
}
}
}
}
}