GEODE-2158: Include correct NOTICE file in jar artifacts

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

Branch: refs/heads/feature/GEODE-2156
Commit: f4439fc97189e0423f965f61e41db6a64471005e
Parents: 5928459
Author: Anthony Baker <aba...@apache.org>
Authored: Wed Nov 30 15:09:47 2016 -0800
Committer: Anthony Baker <aba...@apache.org>
Committed: Wed Nov 30 17:08:06 2016 -0800

----------------------------------------------------------------------
 gradle/java.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/f4439fc9/gradle/java.gradle
----------------------------------------------------------------------
diff --git a/gradle/java.gradle b/gradle/java.gradle
index de501c6..b20ebc8 100644
--- a/gradle/java.gradle
+++ b/gradle/java.gradle
@@ -51,7 +51,7 @@ subprojects {
 
         metaInf {
           from("$rootDir/LICENSE")
-          if (!jar.source.contains('NOTICE')) {
+          if (jar.source.filter({ it.name.contains('NOTICE') }).empty) {
             from("$rootDir/NOTICE")
           }
         }

Reply via email to