Skip to content

Commit

Permalink
chore: disable running spotlessCheck after compilation phase (#1339)
Browse files Browse the repository at this point in the history
Signed-off-by: Tsvetan Dimitrov <tsvetan.dimitrov@consensys.net>
  • Loading branch information
powerslider authored Oct 1, 2024
1 parent d0fd22c commit c5445e3
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions gradle/lint.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,14 @@ task checkSpdxHeader(type: CheckSpdxHeader) {

tasks.check.dependsOn(checkSpdxHeader)

allprojects {
afterEvaluate {
def spotless = tasks.named('spotlessCheck')
tasks.withType(JavaCompile).tap {
configureEach {
finalizedBy(spotless, checkSpdxHeader)
}
}
}
}
// Enable running spotlessCheck after code compilation.
//allprojects {
// afterEvaluate {
// def spotless = tasks.named('spotlessCheck')
// tasks.withType(JavaCompile).tap {
// configureEach {
// finalizedBy(spotless, checkSpdxHeader)
// }
// }
// }
//}

0 comments on commit c5445e3

Please sign in to comment.