-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
94 lines (81 loc) · 2.07 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
84
85
86
87
88
89
90
91
92
93
94
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
dependencies {
classpath(Dependency.KOTLIN_GRADLE_PLUGIN)
classpath(Dependency.GRADLE)
classpath(Dependency.KOTLIN_SERIALIZATION)
classpath(Dependency.BUILD_KONFIG)
classpath(Dependency.KOVER)
classpath(Dependency.GOOGLE_SERVICES)
classpath(Dependency.REALM_GRADLE_PLUGIN)
}
}
plugins {
id(Plugin.KOVER_FULL_PATH) version (Version.KOVER)
id("io.gitlab.arturbosch.detekt").version("1.23.0-RC1")
}
allprojects {
repositories {
google()
mavenCentral()
}
val buildProperties = rootDir.loadGradleProperties("buildKonfig.properties")
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
maven {
name = "Github Packages"
url = uri("https://maven.pkg.github.com/nimblehq/jsonapi-kotlin")
credentials {
username = buildProperties.getProperty("GITHUB_USER")
password = buildProperties.getProperty("GITHUB_TOKEN")
}
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
koverMerged {
enable()
filters {
classes {
excludes += listOf(
"*.databinding.*",
"*.BuildConfig"
)
}
}
}
repositories {
mavenCentral()
}
detekt {
toolVersion = "1.23.0-RC1"
source = files(
"androidApp/src",
"shared/src"
)
parallel = false
config = files("$projectDir/detekt.yml")
buildUponDefaultConfig = false
allRules = false
disableDefaultRuleSets = false
debug = false
ignoreFailures = false
ignoredBuildTypes = listOf("release")
ignoredFlavors = listOf("production")
ignoredVariants = listOf("productionRelease")
basePath = "$projectDir"
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
reports {
html.required.set(true)
xml.required.set(true)
}
}