-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
83 lines (74 loc) · 2.54 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
google()
}
dependencies {
classpath("app.cash.burst:burst-gradle-plugin:2.4.0")
}
}
plugins {
alias(libs.plugins.androidx.room).apply(false)
alias(libs.plugins.app.cash.burst).apply(false)
alias(libs.plugins.app.cash.sqldelight).apply(false)
alias(libs.plugins.com.google.devtools.ksp).apply(false)
alias(libs.plugins.org.jetbrains.compose).apply(false)
alias(libs.plugins.org.jetbrains.kotlin.plugin.compose).apply(false)
alias(libs.plugins.org.jetbrains.kotlin.plugin.serialization).apply(false)
id(libs.plugins.com.android.application.get().pluginId).apply(false)
id(libs.plugins.com.android.library.get().pluginId).apply(false)
id(libs.plugins.org.jetbrains.kotlin.android.get().pluginId).apply(false)
alias(libs.plugins.com.github.ben.manes.versions)
// Disabled due to implicit dependency issue
// alias(libs.plugins.dev.iurysouza.modulegraph)
}
tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {
checkForGradleUpdate = true
outputFormatter = "html"
}
tasks.register("copyGitHooks", Copy::class) {
from(File(rootProject.rootDir, "scripts/git/pre-commit"))
into(File(rootProject.rootDir, ".git/hooks"))
filePermissions {
user {
read = true
execute = true
}
}
}
val verificationMetadataFile = File(rootProject.rootDir, "gradle/verification-metadata.xml")
tasks.register("recopyVerificationMetadata") {
verificationMetadataFile.resolveSibling("verification-metadata-base.xml")
.copyTo(verificationMetadataFile, overwrite = true)
}
tasks.register("generateVerificationMetadata") {
dependsOn("recopyVerificationMetadata")
dependsOn("help")
dependsOn("dependencyUpdates")
// dependsOn("createModuleGraph")
// https://github.com/autonomousapps/dependency-analysis-gradle-plugin/issues/1185
// dependsOn("buildHealth")
finalizedBy(":app:licenseReleaseReport")
}
dependencyAnalysis {
issues {
all {
onAny {
severity("fail")
}
onUsedTransitiveDependencies {
severity("ignore")
}
}
}
}
//moduleGraphConfig {
// readmePath.set("./README.md")
// heading = "#### Start Module Graph"
// theme.set(Theme.DARK)
// excludedConfigurationsRegex.set(".*test.*")
// excludedModulesRegex.set(":")
// rootModulesRegex.set(":app")
//}