Add back norelease check when building a release
This was lost around 2.1. This change adds it back. closes #19246
This commit is contained in:
parent
329eaaea65
commit
6c34a8f4ee
|
@ -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