Skip to content

Commit 6485a32

Browse files
committed
Upgrade spotless plugin
1 parent 9669c8c commit 6485a32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

android_project_common.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* File: 'android_project_common.gradle'
33
* Location: https://raw.githubusercontent.com/yongce/AndroidLib/master/android_project_common.gradle
4-
* Version: 2020.05.30
4+
* Version: 2020.07.19
55
* All android projects can copy and include this file.
66
*/
77

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ buildscript {
2121

2222
// Add plugin for 'spotless'
2323
plugins {
24-
id "com.diffplug.gradle.spotless" version "3.27.1"
24+
id "com.diffplug.spotless" version "5.1.0"
2525
}
2626

2727
allprojects {
@@ -60,7 +60,7 @@ ext {
6060
spotless {
6161
kotlin {
6262
target "**/*.kt"
63-
ktlint(versions.ktlint)
63+
ktlint(versions.ktlint).userData(['indent_size' : '4', 'continuation_indent_size' : '8'])
6464
}
6565
}
6666

0 commit comments

Comments
 (0)