-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
62 lines (49 loc) · 1.78 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
buildscript {
ext.ktlintVersion = '0.48.0'
ext.kotlinVersion = '1.9.24'
ext.androidApplicationVersion = '8.7.2'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidApplicationVersion"
classpath "com.squareup:javapoet:1.13.0"
classpath 'com.google.gms:google-services:4.4.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'com.android.application' version "$androidApplicationVersion" apply false
id 'com.android.library' version "$androidApplicationVersion" apply false
id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion" apply false
id "com.diffplug.spotless" version "6.22.0" // apply false
id 'com.autonomousapps.dependency-analysis' version "1.17.0" // apply false
id "com.dorongold.task-tree" version "2.1.0"
id 'nebula.lint' version '19.0.1'
}
allprojects {
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target "v4/**/*.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 buildHealth
dependsOn spotlessApply
}