0.6.0
This commit is contained in:
@@ -1,30 +1,53 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
import io.gitlab.arturbosch.detekt.Detekt
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
dependencies {
|
||||
classpath("com.android.tools.build", "gradle", "7.3.0")
|
||||
classpath(kotlin("gradle-plugin", libs.versions.kotlin.get()))
|
||||
}
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.jvm) apply false
|
||||
alias(libs.plugins.kotlin.serialization) apply false
|
||||
alias(libs.plugins.kotlin.android) apply false
|
||||
alias(libs.plugins.android.application) apply false
|
||||
alias(libs.plugins.android.library) apply false
|
||||
alias(libs.plugins.android.lint) apply false
|
||||
alias(libs.plugins.ksp) apply false
|
||||
alias(libs.plugins.detekt)
|
||||
}
|
||||
|
||||
tasks.register("clean", Delete::class) {
|
||||
delete(rootProject.buildDir)
|
||||
val clean by tasks.registering(Delete::class) {
|
||||
delete(rootProject.layout.buildDirectory.asFile)
|
||||
}
|
||||
|
||||
subprojects {
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
||||
tasks.withType<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"
|
||||
)
|
||||
}
|
||||
if (project.findProperty("enableComposeCompilerReports") != "true") return@kotlinOptions
|
||||
arrayOf("reports", "metrics").forEach {
|
||||
freeCompilerArgs = freeCompilerArgs + listOf(
|
||||
"-P",
|
||||
"plugin:androidx.compose.compiler.plugins.kotlin:${it}Destination=${
|
||||
layout.buildDirectory.asFile.get().absolutePath
|
||||
}/compose_metrics"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
group = "it.hamy.muza"
|
||||
version = "0.6.0"
|
||||
|
||||
apply(plugin = "io.gitlab.arturbosch.detekt")
|
||||
|
||||
detekt {
|
||||
buildUponDefaultConfig = true
|
||||
allRules = false
|
||||
config.setFrom("$rootDir/detekt.yml")
|
||||
}
|
||||
|
||||
tasks.withType<Detekt>().configureEach {
|
||||
jvmTarget = "11"
|
||||
reports {
|
||||
html.required = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user