You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by ni...@apache.org on 2015/04/17 18:42:42 UTC

[03/28] zest-qi4j git commit: Changes to the Release Specification, and make the boolean expression easier to understand.

Changes to the Release Specification, and make the boolean expression easier to understand.


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/da0fd9d3
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/da0fd9d3
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/da0fd9d3

Branch: refs/heads/develop
Commit: da0fd9d33cda0866c25009595aa67ce531ca6e2c
Parents: b8efcda
Author: Niclas Hedhman <ni...@hedhman.org>
Authored: Sat Jan 10 17:39:01 2015 +0800
Committer: Niclas Hedhman <ni...@hedhman.org>
Committed: Sat Jan 10 17:39:01 2015 +0800

----------------------------------------------------------------------
 .../org/qi4j/gradle/plugin/ModuleReleaseSpecification.groovy     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/da0fd9d3/buildSrc/src/main/groovy/org/qi4j/gradle/plugin/ModuleReleaseSpecification.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/qi4j/gradle/plugin/ModuleReleaseSpecification.groovy b/buildSrc/src/main/groovy/org/qi4j/gradle/plugin/ModuleReleaseSpecification.groovy
index 23324c2..1a3e180 100644
--- a/buildSrc/src/main/groovy/org/qi4j/gradle/plugin/ModuleReleaseSpecification.groovy
+++ b/buildSrc/src/main/groovy/org/qi4j/gradle/plugin/ModuleReleaseSpecification.groovy
@@ -30,8 +30,8 @@ class ModuleReleaseSpecification
     def docs = module.status.documentation.text()
     def tests = module.status.unittests.text()
     def satisfied = ( codebase == 'none' && docs == 'complete' && tests != 'complete' )
-    satisfied |= ( codebase != 'early' && docs == 'good' && tests == 'good' )
-    satisfied |= ( codebase != 'beta' && docs == 'brief' && tests == 'some' )
+    satisfied |= ( codebase == 'early' && ( docs == 'complete' || docs == 'good') && (tests == 'complete' || tests == 'good' ) )
+    satisfied |= ( codebase == 'beta' && (docs == 'complete' || docs == 'good' || docs == 'brief') && (tests == 'complete' || tests == 'good' || tests == 'some') )
     satisfied |= ( codebase == 'stable' )
     satisfied |= ( codebase == 'mature' )
     println "$project.name($satisfied) -> $codebase, $docs, $tests"