diff options
author | Dominik Stadler <centic@apache.org> | 2016-12-31 09:43:13 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2016-12-31 09:43:13 +0000 |
commit | 70864c5a57842a0c56707d6416c8e8d9afdb1953 (patch) | |
tree | ce2d7f42d3627371288dfb5e356ee10a87cf5d91 /build.gradle | |
parent | d3173873cc4e1ddd685c9e71b462c33d85689190 (diff) | |
download | poi-70864c5a57842a0c56707d6416c8e8d9afdb1953.tar.gz poi-70864c5a57842a0c56707d6416c8e8d9afdb1953.zip |
Coverage:
* Exclude "examples" from coverage in Jenkins, add some comments
* Fix warning in newer Gradle versions
* Adjust coverage-excludes in build.xml
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1776715 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle index d352c79df8..9432f2a073 100644 --- a/build.gradle +++ b/build.gradle @@ -47,12 +47,14 @@ allprojects { gradleVersion = '2.14.1' } - task adjustWrapperPropertiesFile << { - ant.replaceregexp(match:'^#.*', replace:'', flags:'g', byline:true) { - fileset(dir: project.projectDir, includes: 'gradle/wrapper/gradle-wrapper.properties') + task adjustWrapperPropertiesFile { + doLast { + ant.replaceregexp(match:'^#.*', replace:'', flags:'g', byline:true) { + fileset(dir: project.projectDir, includes: 'gradle/wrapper/gradle-wrapper.properties') + } + new File(project.projectDir, 'gradle/wrapper/gradle-wrapper.properties').with { it.text = it.readLines().findAll { it }.sort().join('\n') } + ant.fixcrlf(file: 'gradle/wrapper/gradle-wrapper.properties', eol: 'lf') } - new File(project.projectDir, 'gradle/wrapper/gradle-wrapper.properties').with { it.text = it.readLines().findAll { it }.sort().join('\n') } - ant.fixcrlf(file: 'gradle/wrapper/gradle-wrapper.properties', eol: 'lf') } wrapper.finalizedBy adjustWrapperPropertiesFile } |