-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle
67 lines (60 loc) · 1.64 KB
/
build.gradle
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
buildscript {
ext.kotlin_version = '2.0.21'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.2'
classpath 'com.google.gms:google-services:4.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.jlleitschuh.gradle:ktlint-gradle:12.1.0'
}
}
plugins {
id 'com.google.devtools.ksp' version '2.0.21-1.0.28' apply false
id 'io.gitlab.arturbosch.detekt' version '1.23.4'
id 'io.snyk.gradle.plugin.snykplugin' version '0.5'
id 'org.jetbrains.kotlin.android' version '2.0.21' apply false
id 'org.jlleitschuh.gradle.ktlint' version '12.1.0'
}
repositories {
mavenCentral()
}
tasks.register('clean', Delete) {
delete rootProject.layout.buildDirectory
}
allprojects { project ->
dependencyLocking {
lockAllConfigurations()
}
tasks.register('resolveAndLockAll') {
doFirst {
assert gradle.startParameter.writeDependencyLocks
}
doLast {
configurations.findAll {
// Add any custom filtering on the configurations to be resolved
it.canBeResolved
}.each { it.resolve() }
}
}
}
subprojects {
tasks.withType(Test).configureEach {
jvmArgs = jvmArgs + [
'--add-opens=java.base/java.lang=ALL-UNNAMED',
'--add-opens=java.base/java.util=ALL-UNNAMED'
]
}
}
detekt {
buildUponDefaultConfig = true
allRules = false
}
snyk {
severity = 'high'
autoDownload = true
autoUpdate = true
arguments = '--all-sub-projects'
}