Skip to content

Commit

Permalink
Disable auto checks of checkstyle and spotless when building
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Nov 22, 2024
1 parent fb418b5 commit cb3a5b9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions rskj-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ checkstyle {
}

spotless {
enforceCheck false
java {
googleJavaFormat()
indentWithTabs(2)
Expand Down Expand Up @@ -150,6 +151,7 @@ tasks.withType(Checkstyle).configureEach { Checkstyle task ->
}
}
}
task.dependsOn processResources
}

configurations {
Expand Down Expand Up @@ -565,9 +567,14 @@ static def amendPathIfNeeded(details) {
}
}

tasks.named('check').configure {
dependsOn 'checkstyleMain'
dependsOn 'checkstyleTest'
dependsOn 'checkstyleJmh'
dependsOn 'checkstyleIntegrationTest'
}
task checkstyleAll {
group = 'Verification'
description = 'Run all Checkstyle checks'
dependsOn 'checkstyleMain', 'checkstyleTest', 'checkstyleJmh', 'checkstyleIntegrationTest'
}

task spotlessAll {
group = 'Verification'
description = 'Run all Spotless checks'
dependsOn 'spotlessJavaCheck'
}

0 comments on commit cb3a5b9

Please sign in to comment.