Mercurial > public > develkit
comparison init20.gradle @ 230:e902c107f5db
apply release rules only to root project
author | smith@nwoca.org |
---|---|
date | Fri, 29 Jul 2016 19:13:59 +0100 |
parents | e63c2f7761a6 |
children | ce34e62224cf |
comparison
equal
deleted
inserted
replaced
229:e63c2f7761a6 | 230:e902c107f5db |
---|---|
340 | 340 |
341 } | 341 } |
342 } | 342 } |
343 } | 343 } |
344 | 344 |
345 } | |
346 | |
347 rootProject.afterEvaluate { | |
348 | |
345 tasks.addRule("release{Major|Minor|Patch|n.n.n}: create release branch") { String taskName -> | 349 tasks.addRule("release{Major|Minor|Patch|n.n.n}: create release branch") { String taskName -> |
346 | 350 |
347 def matcher = (taskName =~ /^release(Major|Minor|Patch|\d{1,3}\.\d{1,3}\.\d{1,3})$/) | 351 def matcher = (taskName =~ /^release(Major|Minor|Patch|\d{1,3}\.\d{1,3}\.\d{1,3})$/) |
348 if (matcher.matches()) { | 352 if (matcher.matches()) { |
349 | 353 |