|
|
@ -14,10 +14,10 @@
|
|
|
|
* limitations under the License.
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
val ktlintVersion = "0.48.1"
|
|
|
|
val ktlintVersion = "1.0.1"
|
|
|
|
|
|
|
|
|
|
|
|
initscript {
|
|
|
|
initscript {
|
|
|
|
val spotlessVersion = "6.22.0"
|
|
|
|
val spotlessVersion = "6.23.3"
|
|
|
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenCentral()
|
|
|
@ -35,7 +35,11 @@ rootProject {
|
|
|
|
kotlin {
|
|
|
|
kotlin {
|
|
|
|
target("**/*.kt")
|
|
|
|
target("**/*.kt")
|
|
|
|
targetExclude("**/build/**/*.kt")
|
|
|
|
targetExclude("**/build/**/*.kt")
|
|
|
|
ktlint(ktlintVersion).userData(mapOf("android" to "true"))
|
|
|
|
ktlint(ktlintVersion).editorConfigOverride(
|
|
|
|
|
|
|
|
mapOf(
|
|
|
|
|
|
|
|
"android" to "true",
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
licenseHeaderFile(rootProject.file("spotless/copyright.kt"))
|
|
|
|
licenseHeaderFile(rootProject.file("spotless/copyright.kt"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
format("kts") {
|
|
|
|
format("kts") {
|
|
|
|