fix: line endings in archive files (zip: crlf; tar: lf)
This commit is contained in:
parent
19a3961207
commit
d540b38a98
1 changed files with 15 additions and 0 deletions
15
build.gradle
15
build.gradle
|
@ -1,5 +1,10 @@
|
||||||
|
import org.apache.tools.ant.filters.FixCrLfFilter
|
||||||
|
|
||||||
def jettyLogLevel = '-Dorg.eclipse.jetty.LEVEL=WARN'
|
def jettyLogLevel = '-Dorg.eclipse.jetty.LEVEL=WARN'
|
||||||
|
|
||||||
|
// This list is used to determine which files need processing of line endings
|
||||||
|
def textFiles = ['**/*.hac', '**/.html', '**/*.js', '**/*.md', '**/*.properties', '**/*.skin', '**/*.txt', '**/*.xml']
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
|
@ -95,6 +100,16 @@ applicationDistribution.from("${project.buildDir}/docs/jsdoc") {
|
||||||
|
|
||||||
distTar {
|
distTar {
|
||||||
compression = Compression.GZIP
|
compression = Compression.GZIP
|
||||||
|
|
||||||
|
filesMatching(textFiles) {
|
||||||
|
filter(FixCrLfFilter.class, eol: FixCrLfFilter.CrLf.newInstance("lf"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
distZip {
|
||||||
|
filesMatching(textFiles) {
|
||||||
|
filter(FixCrLfFilter.class, eol: FixCrLfFilter.CrLf.newInstance("crlf"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
installDist {
|
installDist {
|
||||||
|
|
Loading…
Add table
Reference in a new issue