]> source.dussan.org Git - poi.git/commitdiff
try to add LICENSE and NOTICE to sources jars
authorPJ Fanning <fanningpj@apache.org>
Tue, 26 Oct 2021 00:37:27 +0000 (00:37 +0000)
committerPJ Fanning <fanningpj@apache.org>
Tue, 26 Oct 2021 00:37:27 +0000 (00:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894566 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml-lite/build.gradle
poi-scratchpad/build.gradle

index 6b10453af95e1faecfb9c36ddcff63826a580831..613820076271c7732fce0c0954a15cf31dc81f75 100644 (file)
@@ -129,8 +129,7 @@ jar {
             File missingXsbsFile = file("missing-xsbs.txt")
             List xsbs2 = missingXsbsFile.findAll { !it.empty && !it.startsWith("#") }
               .collect { "org/apache/poi/schemas/ooxml/system/ooxml/${it.trim()}.xsb" }
-            includes = clazz + clazzInner + xsbs + xsbs2 +
-                ['META-INF/versions/**', 'META-INF/LICENSE', 'META-INF/NOTICE', 'org/apache/poi/schemas/ooxml/element/**']
+            includes = clazz + clazzInner + xsbs + xsbs2 + ['META-INF/versions/**', 'org/apache/poi/schemas/ooxml/element/**']
         }
     }
 
index 6b7781df5bf9c11159efa95fe59a84dc4648824c..3927b62c8ab2334e6144364fa75bbbdeb9ffc6d4 100644 (file)
@@ -114,6 +114,13 @@ jar {
     }
 }
 
+sourcesJar {
+    metaInf {
+        from("$projectDir/../legal/LICENSE")
+        from("$projectDir/../legal/NOTICE")
+    }
+}
+
 // Create a separate jar for test-code to depend on it in other projects
 // See http://stackoverflow.com/questions/5144325/gradle-test-dependency
 task testJar(type: Jar, dependsOn: testClasses) {