Skip to content

Commit

Permalink
Renamed checkStyle task and updated it to v8.2 (#6)
Browse files Browse the repository at this point in the history
The gralde task naming should begin with low case
  • Loading branch information
drakeet committed Sep 15, 2017
1 parent f3cff27 commit ef3d030
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

apply plugin: 'com.android.library'
apply from: './gradle-mvn-push.gradle'
apply from: 'gradle-mvn-push.gradle'
apply from: 'checkstyle.gradle'

android {
Expand Down
8 changes: 4 additions & 4 deletions library/checkstyle.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'checkstyle'

checkstyle{
toolVersion = 8.1
toolVersion = 8.2
}

task Checkstyle(type: Checkstyle) {
description = 'Runs Checkstyle inspection against Floo sourcesets.'
task checkStyle(type: Checkstyle) {
description = 'Runs checkStyle inspection against Floo sourcesets.'
group = 'Code Style'
configFile = rootProject.file('checkstyle.xml')
ignoreFailures = false
Expand All @@ -16,5 +16,5 @@ task Checkstyle(type: Checkstyle) {

// check code style after project evaluation
afterEvaluate { project ->
getTasksByName('Checkstyle', false)[0].execute()
getTasksByName('checkStyle', false)[0].execute()
}

0 comments on commit ef3d030

Please sign in to comment.