Repository: groovy
Updated Branches:
  refs/heads/master ed1c4c4b9 -> a67c1dfcc


Consistently create manifests

This commit is a build cache optimization: while we don't really care about the 
manifest of
the "raw" cache, it's better to consistently create one that does **not** 
include the OSGI
last modified entry, as it will trigger unnecessary rebuilds, because of cache 
misses.


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

Branch: refs/heads/master
Commit: a67c1dfccf81a353007a635d68a47e015c1c2943
Parents: 6e69d57
Author: Cedric Champeau <[email protected]>
Authored: Fri Dec 15 09:29:32 2017 +0100
Committer: Cedric Champeau <[email protected]>
Committed: Fri Dec 15 09:31:04 2017 +0100

----------------------------------------------------------------------
 gradle/assemble.gradle | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/a67c1dfc/gradle/assemble.gradle
----------------------------------------------------------------------
diff --git a/gradle/assemble.gradle b/gradle/assemble.gradle
index bf54c51..9a06ee1 100644
--- a/gradle/assemble.gradle
+++ b/gradle/assemble.gradle
@@ -113,7 +113,7 @@ ext.groovyOsgiManifest = {
     // Exclude the Bnd-LastModified attribute as it always triggers a rebuild 
without being really needed.
     from(allManifest) {
         eachEntry { details ->
-            if (excludedFromManifest.any { it == details.key}) {
+            if (excludedFromManifest.any { it == details.key }) {
                 details.exclude()
             }
         }
@@ -143,6 +143,15 @@ allprojects {
     def producedJars = [jar]
     jar {
         appendix = 'raw'
+        manifest {
+            from(allManifest) {
+                eachEntry { details ->
+                    if (excludedFromManifest.any { it == details.key }) {
+                        details.exclude()
+                    }
+                }
+            }
+        }
     }
     if (rootProject.indyCapable()) {
         task jarWithIndy(type: Jar) {

Reply via email to