Skip to content

Commit

Permalink
Respect disableSpotless property (#215)
Browse files Browse the repository at this point in the history
* Respect disableSpotless property

Building should not depend on `spotlessCheck` if spotless is disabled, as the task is not present.

* Address review
  • Loading branch information
firenoo committed Aug 6, 2023
1 parent 5edf329 commit 6b48a76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,10 @@ tasks.named("processIdeaSettings").configure {

tasks.named("ideVirtualMainClasses").configure {
// Make IntelliJ "Build project" build the mod jars
dependsOn("jar", "reobfJar", "spotlessCheck")
dependsOn("jar", "reobfJar")
if (!disableSpotless) {
dependsOn("spotlessCheck")
}
}

// workaround variable hiding in pom processing
Expand Down

0 comments on commit 6b48a76

Please sign in to comment.