forked from dojo-engineering/android-dojo-pay-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
57 lines (53 loc) · 1.66 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0")
classpath("com.android.tools.build:gradle:7.4.1")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.5.0")
classpath("org.jetbrains.dokka:dokka-core:1.5.0")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.1")
}
}
plugins {
id("com.android.application") apply false
id("com.android.library") apply false
kotlin("android") apply false
id("io.gitlab.arturbosch.detekt") version "1.17.1"
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
}
subprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
apply(plugin = "org.jlleitschuh.gradle.ktlint")
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
debug.set(false)
version.set("0.42.1")
verbose.set(true)
android.set(false)
outputToConsole.set(true)
ignoreFailures.set(false)
disabledRules.set(setOf("experimental:argument-list-wrapping"))
enableExperimentalRules.set(true)
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
detekt {
config = rootProject.files("configs/detekt/detekt.yml")
reports {
xml.enabled = true
html.enabled = true
txt.enabled = true
sarif.enabled = true
}
}
}
tasks {
register("clean", Delete::class.java) {
delete(rootProject.buildDir)
}
}