-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (42 loc) · 1.4 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(libs.ruler.gradle.plugin)
}
}
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.secrets) apply true
alias(libs.plugins.android.test) apply false
alias(libs.plugins.androidx.baselineprofile) apply false
alias(libs.plugins.licensee.gradlePlugin) apply false
alias(libs.plugins.spotless)
}
secrets {
// Optionally specify a different file name containing your secrets.
// The plugin defaults to "local.properties"
propertiesFileName = "secrets.properties"
// A properties file containing default secret values. This file can be
// checked in version control.
//defaultPropertiesFileName = 'local.defaults.properties'
}
spotless {
kotlin {
target("**/*.kt")
targetExclude("**/build/**/*.kt")
ktlint(libs.versions.ktlint.get())
.userData(mapOf("android" to "true"))
.setUseExperimental(true)
trimTrailingWhitespace()
indentWithTabs()
endWithNewline()
}
}