-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
61 lines (53 loc) · 1.67 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
compose_version = "1.0.0"
sqldelight_version = "1.5.1"
protobuf_version = "3.17.3"
accompanist_version = "0.15.0"
}
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url "https://www.jetbrains.com/intellij-repository/releases" }
maven { url "https://jetbrains.bintray.com/intellij-third-party-dependencies" }
}
dependencies {
classpath "app.cash.exhaustive:exhaustive-gradle:0.1.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10"
classpath "com.squareup.sqldelight:gradle-plugin:$sqldelight_version"
classpath "com.android.tools.build:gradle:7.0.0"
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.17.1"
}
detekt {
buildUponDefaultConfig = true
config = files("config/detekt/detekt.yml")
baseline = file("detekt-baseline.xml")
allRules = false // skip unstable rules
input = files(
"app/src/main/java",
"app/src/test/java",
"app/src/androidTest/java",
)
reports {
html.enabled = true
xml.enabled = true
sarif.enabled = true
}
}
tasks.detekt.jvmTarget = "1.8"
task clean(type: Delete) {
delete rootProject.buildDir
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
// Treat all Kotlin warnings as errors
allWarningsAsErrors = true
// for Color moshi adapter (ULong)
freeCompilerArgs += "-Xopt-in=kotlin.ExperimentalStdlibApi"
}
}