-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (44 loc) · 1.61 KB
/
build.gradle.kts
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
buildscript {
extra.apply{
set("compose_ui_version" , "1.3.2")
}
repositories {
google()
mavenCentral()
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
val composeUiVersion = rootProject.extra["compose_ui_version"] as String
plugins {
id (Plugins.androidApplication) version (Plugins.androidApplicationVersion) apply false
id (Plugins.androidLibrary) version (Plugins.androidLibraryVersion) apply false
id (Plugins.kotlinPlugin) version (Plugins.kotlinPluginVersion) apply false
id(Plugins.kotlinJvm) version (Plugins.kotlinPluginVersion) apply false
id(Plugins.daggerHilt) version (Versions.daggerHiltVersion) apply false
id (Plugins.spotlessPlugin) version (Versions.spotlessVersion)
id (Plugins.ktlintPlugin) version (Versions.ktlintVersion)
}
subprojects{
apply(plugin = Plugins.spotlessPlugin)
spotless{
kotlin {
target("**/*.kt")
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
apply(plugin = Plugins.ktlintPlugin)
ktlint {
android.set(true)
verbose.set(true)
debug.set(true)
outputToConsole.set(true)
outputColorName.set("RED")
ignoreFailures.set(false)
enableExperimentalRules.set(true)
disabledRules.set(listOf("final-newline" , "no-wildcard-imports" , "max-line-length"))
filter {
exclude { element -> element.file.path.contains("generated/") }
}
}
}
}