-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
38 lines (34 loc) · 1.4 KB
/
build.gradle.kts
File metadata and controls
38 lines (34 loc) · 1.4 KB
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
import io.gitlab.arturbosch.detekt.report.ReportMergeTask
import org.gradle.kotlin.dsl.register
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.compose) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.compose.multiplatform) apply false
alias(libs.plugins.maven.publish) apply false
alias(libs.plugins.detekt)
signing
publishing
}
tasks.register<app.futured.donut.LintCheckTask>("lintCheck")
tasks.register<app.futured.donut.DependencyUpdates>("dependencyUpdates")
tasks.register<ReportMergeTask>("detektReportMerge") {
output.set(rootProject.layout.buildDirectory.file("reports/detekt/merged.xml"))
}
project.subprojects {
plugins.whenPluginAdded {
if (this is SigningPlugin) {
extensions.findByType<SigningExtension>()?.apply {
val hasKey = project.hasProperty("SIGNING_PRIVATE_KEY")
val hasPassword = project.hasProperty("SIGNING_PASSWORD")
if (hasKey && hasPassword) {
val key = project.properties["SIGNING_PRIVATE_KEY"].toString()
val password = project.properties["SIGNING_PASSWORD"].toString()
useInMemoryPgpKeys(key, password)
}
}
}
}
}