forked from osfans/trime
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
39 lines (35 loc) · 1.15 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
/**
* The buildscript block is where you configure the repositories and
* dependencies for Gradle itself--meaning, you should not include dependencies
* for your modules here. For example, this block includes the Android plugin for
* Gradle as a dependency because it provides the additional instructions Gradle
* needs to build Android app modules.
*/
buildscript {
ext.kotlin_version = '1.7.20'
ext.kotlin_coroutines_version = '1.6.4'
ext.nav_version = '2.5.3'
ext.room_version = '2.4.3'
ext.splitties_version = '3.0.0'
}
plugins {
id "com.android.application" version "7.2.2" apply false
id 'com.android.library' version '7.2.2' apply false
id "org.jetbrains.kotlin.android" version "$kotlin_version" apply false
id "com.diffplug.spotless" version "6.3.0"
}
spotless {
java {
importOrder()
removeUnusedImports()
target 'app/src/main/java/hk/eduhk/typeduck/**/*.java'
googleJavaFormat('1.15.0')
}
kotlin {
target 'app/src/main/java/hk/eduhk/typeduck/**/*.kt'
ktlint("0.44.0")
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
}