Merge pull request #19873 from rjernst/norelease_check
Add back norelease check when building a release
This commit is contained in:
commit
a73c7e3bf0
|
@ -61,6 +61,9 @@ public class ForbiddenPatternsTask extends DefaultTask {
|
||||||
// add mandatory rules
|
// add mandatory rules
|
||||||
patterns.put('nocommit', /nocommit/)
|
patterns.put('nocommit', /nocommit/)
|
||||||
patterns.put('tab', /\t/)
|
patterns.put('tab', /\t/)
|
||||||
|
if (System.getProperty('build.snapshot', 'true').equals('false')) {
|
||||||
|
patterns.put('norelease', /norelease/)
|
||||||
|
}
|
||||||
|
|
||||||
inputs.property("excludes", filesFilter.excludes)
|
inputs.property("excludes", filesFilter.excludes)
|
||||||
inputs.property("rules", patterns)
|
inputs.property("rules", patterns)
|
||||||
|
|
Loading…
Reference in New Issue