-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (37 loc) · 1.21 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
buildscript {
ext.ktlintVersion = '0.48.0'
repositories {
google()
mavenCentral()
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.2' apply false
id 'com.android.library' version '8.4.2' apply false
id 'org.jetbrains.kotlin.android' version '1.8.21' apply false
id 'com.google.dagger.hilt.android' version '2.41' apply false
id "com.diffplug.spotless" version "6.22.0" // apply false
}
allprojects {
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target "**/*.kt"
targetExclude ".idea/"
ktlint(ktlintVersion)
.userData(["android" : "true"])
.editorConfigOverride([
"ktlint_standard_enum-entry-name-case" : "disabled",
"ktlint_standard_trailing-comma-on-declaration-site": "disabled",
"ktlint_standard_no-semi": "disabled",
])
}
}
ext {
//dependencies shared between both v3 and v4
}
}
tasks.named('check') {
dependsOn spotlessApply
}