File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 11# By default, detect text files automatically, and use whatever line terminators make sense for the OS
2- * text =auto
2+ * text =auto eol = lf
33
44# Java files are text, and we want Java-friendly readable hunk headers for diff
5- * .java text diff =java
5+ * .java text diff =java eol = lf
66
77# Force LF/CRLF format for files that are known to require it.
88* .sh text eol =lf
Original file line number Diff line number Diff line change @@ -519,16 +519,14 @@ tasks.register( "ciCheck" ) {
519519 group " verification"
520520 description " Checks for CI environments"
521521 dependsOn tasks. check
522+ }
522523
523- // These are already enforced by the formatChecks task
524- spotlessApply {
525- enabled = false
526- }
527- spotlessJavaApply {
528- enabled = false
529- }
530- enforceRules {
531- enabled = false
524+ gradle. taskGraph. whenReady {
525+ if ( it. hasTask( tasks. ciCheck ) ) {
526+ // These are already enforced by the formatChecks task
527+ tasks. spotlessApply. enabled = false
528+ tasks. spotlessJavaApply. enabled = false
529+ tasks. enforceRules. enabled = false
532530 }
533531}
534532
You can’t perform that action at this time.
0 commit comments