Skip to content

Commit

Permalink
Fix local execution of gradle tasks and line ending issues
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Nov 13, 2024
1 parent 0ca27a4 commit 9c96e84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# By default, detect text files automatically, and use whatever line terminators make sense for the OS
* text=auto
* text=auto eol=lf

# Java files are text, and we want Java-friendly readable hunk headers for diff
*.java text diff=java
*.java text diff=java eol=lf

# Force LF/CRLF format for files that are known to require it.
*.sh text eol=lf
Expand Down
16 changes: 7 additions & 9 deletions gradle/java-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -519,16 +519,14 @@ tasks.register( "ciCheck" ) {
group "verification"
description "Checks for CI environments"
dependsOn tasks.check
}

// These are already enforced by the formatChecks task
spotlessApply {
enabled = false
}
spotlessJavaApply {
enabled = false
}
enforceRules {
enabled = false
gradle.taskGraph.whenReady {
if ( it.hasTask( tasks.ciCheck ) ) {
// These are already enforced by the formatChecks task
tasks.spotlessApply.enabled = false
tasks.spotlessJavaApply.enabled = false
tasks.enforceRules.enabled = false
}
}

Expand Down

0 comments on commit 9c96e84

Please sign in to comment.