Skip to content

Commit

Permalink
uncomment checksytle task
Browse files Browse the repository at this point in the history
  • Loading branch information
jburke-cadc committed Mar 4, 2025
1 parent 5bf2afd commit 54b75dc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions opencadc.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ sourceSets {
// Temporary work around for issue https://github.com/gradle/gradle/issues/881 -
// gradle not displaying fail build status when warnings reported -->

//tasks.withType(Checkstyle).each { checkstyleTask ->
// checkstyleTask.doLast {
// reports.all { report ->
// def outputFile = report.destination
// if (outputFile.exists() && outputFile.text.contains("<error ")) {
// throw new GradleException("There were checkstyle warnings! For more info check $outputFile")
// }
// }
// }
//}
tasks.withType(Checkstyle).each { checkstyleTask ->
checkstyleTask.doLast {
reports.all { report ->
def outputFile = report.destination
if (outputFile.exists() && outputFile.text.contains("<error ")) {
throw new GradleException("There were checkstyle warnings! For more info check $outputFile")
}
}
}
}

tasks.withType(Test) {
// reset the report destinations so that intTests go to their own page
Expand Down

0 comments on commit 54b75dc

Please sign in to comment.