File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
buildscript {
2
- ext. kotlinVersion = ' 1.3.31 '
2
+ ext. kotlinVersion = ' 1.3.50 '
3
3
ext. navigationVersion = " 2.1.0-alpha06"
4
+ ext. ktlintVersion = ' 0.33.0'
4
5
repositories {
5
6
google()
6
7
jcenter()
7
8
}
8
9
dependencies {
9
- classpath ' com.android.tools.build:gradle:3.4.1 '
10
+ classpath ' com.android.tools.build:gradle:3.5.2 '
10
11
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion "
11
12
classpath " androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion "
12
13
@@ -15,15 +16,23 @@ buildscript {
15
16
}
16
17
}
17
18
19
+ plugins {
20
+ id " com.diffplug.gradle.spotless" version " 3.24.0"
21
+ }
22
+
18
23
allprojects {
19
24
repositories {
20
25
google()
21
26
jcenter()
22
27
}
23
- }
24
-
25
- task clean (type : Delete ) {
26
- delete rootProject. buildDir
28
+ apply plugin : ' com.diffplug.gradle.spotless'
29
+ spotless {
30
+ kotlin {
31
+ target " **/*.kt"
32
+ targetExclude " .idea/"
33
+ ktlint(ktlintVersion)
34
+ }
35
+ }
27
36
}
28
37
29
38
// Define versions in a single place
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-5.1 .1-all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.4 .1-all.zip
You can’t perform that action at this time.
0 commit comments