Fix local execution of gradle tasks and line ending issues
This commit is contained in:
parent
0ca27a4e32
commit
9c96e84a58
|
@ -1,8 +1,8 @@
|
||||||
# By default, detect text files automatically, and use whatever line terminators make sense for the OS
|
# 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 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.
|
# Force LF/CRLF format for files that are known to require it.
|
||||||
*.sh text eol=lf
|
*.sh text eol=lf
|
||||||
|
|
|
@ -519,16 +519,14 @@ tasks.register( "ciCheck" ) {
|
||||||
group "verification"
|
group "verification"
|
||||||
description "Checks for CI environments"
|
description "Checks for CI environments"
|
||||||
dependsOn tasks.check
|
dependsOn tasks.check
|
||||||
|
}
|
||||||
|
|
||||||
|
gradle.taskGraph.whenReady {
|
||||||
|
if ( it.hasTask( tasks.ciCheck ) ) {
|
||||||
// These are already enforced by the formatChecks task
|
// These are already enforced by the formatChecks task
|
||||||
spotlessApply {
|
tasks.spotlessApply.enabled = false
|
||||||
enabled = false
|
tasks.spotlessJavaApply.enabled = false
|
||||||
}
|
tasks.enforceRules.enabled = false
|
||||||
spotlessJavaApply {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
enforceRules {
|
|
||||||
enabled = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue