Skip to content

Commit

Permalink
chore: add Checksyle and Pmd gradle tasks to verification group
Browse files Browse the repository at this point in the history
- allows them to show up in `gradlew tasks` without specifying `-all`
- also corrected formatting
  • Loading branch information
jdrueckert committed Jul 14, 2024
1 parent 855b2be commit 2111e62
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build-logic/src/main/kotlin/terasology-metrics.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,22 @@ tasks.withType<Test> {
}
}

tasks.withType<Checkstyle> {
//FIXME: This is a workaround for module harness builds, where the config
tasks.withType<Checkstyle> {
//FIXME: This is a workaround for module harness builds, where the config
// files are part of the harness but the task is not defined.
if (rootProject.name == "Terasology") {
dependsOn(tasks.getByPath(":extractConfig"))
}
}
group = "verification"
}

tasks.withType<Pmd> {
//FIXME: This is a workaround for module harness builds, where the config
// files are part of the harness but the task is not defined.
if (rootProject.name == "Terasology") {
dependsOn(tasks.getByPath(":extractConfig"))
}
group = "verification"
}

tasks.withType<SpotBugsTask> {
Expand Down

0 comments on commit 2111e62

Please sign in to comment.