-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.gradle
44 lines (38 loc) · 867 Bytes
/
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.kotlin_version = '1.7.21'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "com.diffplug.spotless" version "6.12.0"
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
spotless {
format 'misc', {
// define the files to apply `misc` to
target '**/*.gradle', '**/*.md', '**/.gitignore'
// define the steps to apply to those files
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
kotlin {
target '**/*.kt'
ktlint()
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
}