Merge pull request #19873 from rjernst/norelease_check

Add back norelease check when building a release
This commit is contained in:
Ryan Ernst 2016-08-08 11:22:36 -07:00 committed by GitHub
commit a73c7e3bf0
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ public class ForbiddenPatternsTask extends DefaultTask {
// add mandatory rules
patterns.put('nocommit', /nocommit/)
patterns.put('tab', /\t/)
if (System.getProperty('build.snapshot', 'true').equals('false')) {
patterns.put('norelease', /norelease/)
}
inputs.property("excludes", filesFilter.excludes)
inputs.property("rules", patterns)