# HG changeset patch # User smith@nwoca.org # Date 1469816039 -3600 # Node ID e902c107f5dbff0f9b80728950291e76ef7b9122 # Parent e63c2f7761a69b0af1b4532e206ae20332ce04c8 apply release rules only to root project diff -r e63c2f7761a6 -r e902c107f5db init20.gradle --- a/init20.gradle Mon Jul 11 13:20:13 2016 +0100 +++ b/init20.gradle Fri Jul 29 19:13:59 2016 +0100 @@ -342,6 +342,10 @@ } } +} + +rootProject.afterEvaluate { + tasks.addRule("release{Major|Minor|Patch|n.n.n}: create release branch") { String taskName -> def matcher = (taskName =~ /^release(Major|Minor|Patch|\d{1,3}\.\d{1,3}\.\d{1,3})$/)