Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
add spotless and update gradle (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
immadisairaj authored Jun 23, 2019
1 parent 3314d94 commit 443f915
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ script:
- './gradlew clean'
- './gradlew assembleDebug assembleRelease'
- './gradlew check'
- './gradlew build'
11 changes: 11 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id "com.diffplug.gradle.spotless" version "3.23.1"
}

apply plugin: 'com.android.application'

android {
Expand All @@ -18,6 +22,13 @@ android {
}
}

spotless {
java {
target '**/*.java'
removeUnusedImports()
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.android.tools.build:gradle:3.4.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 443f915

Please sign in to comment.