]> source.dussan.org Git - poi.git/commitdiff
try to add LICENSE and NOTICE to javadoc jars
authorPJ Fanning <fanningpj@apache.org>
Mon, 25 Oct 2021 22:29:10 +0000 (22:29 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 25 Oct 2021 22:29:10 +0000 (22:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894564 13f79535-47bb-0310-9956-ffa450edef68

poi-examples/build.gradle
poi-excelant/build.gradle
poi-ooxml/build.gradle
poi-scratchpad/build.gradle
poi/build.gradle

index 64dd675ea4d0612f99e67ac1ca69c54d3c882e40..3034d955acaf03cdfdb1aaca6dfd16753c3d5631 100644 (file)
@@ -87,3 +87,10 @@ jar {
         attributes('Automatic-Module-Name': MODULE_NAME, 'Multi-Release': 'true')
     }
 }
+
+javadocJar {
+    metaInf {
+        from("$projectDir/../legal/LICENSE")
+        from("$projectDir/../legal/NOTICE")
+    }
+}
index daa7c0bbc063bd51ed6d53498e4560d84d5f8364..1de82e2cd6033215cd9dd80579744f8813c072d2 100644 (file)
@@ -120,6 +120,13 @@ jar {
     }
 }
 
+javadocJar {
+    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, cacheTest9 ] ) {
index 0729de0ba3bdb38322c02377c278e2ee4a0aca1e..239d8faecaee2877a039cd3729fbc3182f49a8d2 100644 (file)
@@ -276,6 +276,13 @@ javadoc {
     }
 }
 
+javadocJar {
+    metaInf {
+        from("$projectDir/../legal/LICENSE")
+        from("$projectDir/../legal/NOTICE")
+    }
+}
+
 artifacts {
     tests testJar
 }
index 94ca0350c87c06fd72a22457557c38c1d54cfdb1..220df5aafc1431a3f65b28bda5cd4b22b26a2473 100644 (file)
@@ -144,6 +144,13 @@ javadoc {
     }
 }
 
+javadocJar {
+    metaInf {
+        from("$projectDir/../legal/LICENSE")
+        from("$projectDir/../legal/NOTICE")
+    }
+}
+
 artifacts {
     tests testJar
 }
index 995972f92aae9d371497b13e38db832dc98e851b..16591f78c4a5cf64bf7266f328eb34c231590d04 100644 (file)
@@ -175,6 +175,13 @@ javadoc {
     }
 }
 
+javadocJar {
+    metaInf {
+        from("$projectDir/../legal/LICENSE")
+        from("$projectDir/../legal/NOTICE")
+    }
+}
+
 artifacts {
     tests testJar
 }