Respect disableSpotless property (#215)

* Respect disableSpotless property

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

* Address review
This commit is contained in:
firenoo authored and GitHub committed 2023-08-06 20:50:56 +01:00
1 parent 5edf329558
commit 6b48a766fb
1 file changed
+4 -1
+4 -1
View File
@@ -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