summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-10-25 22:29:10 +0000
committerPJ Fanning <fanningpj@apache.org>2021-10-25 22:29:10 +0000
commite66486bc8a22c92ad7a21befc452e7786611fdcb (patch)
tree775758e3ca319eece6f6c1851de745c1b18a1660
parenta5325cb11240c799f4f8f5d280635b8f60aa850c (diff)
downloadpoi-e66486bc8a22c92ad7a21befc452e7786611fdcb.tar.gz
poi-e66486bc8a22c92ad7a21befc452e7786611fdcb.zip
try to add LICENSE and NOTICE to javadoc jars
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894564 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi-examples/build.gradle7
-rw-r--r--poi-excelant/build.gradle7
-rw-r--r--poi-ooxml/build.gradle7
-rw-r--r--poi-scratchpad/build.gradle7
-rw-r--r--poi/build.gradle7
5 files changed, 35 insertions, 0 deletions
diff --git a/poi-examples/build.gradle b/poi-examples/build.gradle
index 64dd675ea4..3034d955ac 100644
--- a/poi-examples/build.gradle
+++ b/poi-examples/build.gradle
@@ -87,3 +87,10 @@ jar {
attributes('Automatic-Module-Name': MODULE_NAME, 'Multi-Release': 'true')
}
}
+
+javadocJar {
+ metaInf {
+ from("$projectDir/../legal/LICENSE")
+ from("$projectDir/../legal/NOTICE")
+ }
+}
diff --git a/poi-excelant/build.gradle b/poi-excelant/build.gradle
index daa7c0bbc0..1de82e2cd6 100644
--- a/poi-excelant/build.gradle
+++ b/poi-excelant/build.gradle
@@ -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 ] ) {
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle
index 0729de0ba3..239d8faeca 100644
--- a/poi-ooxml/build.gradle
+++ b/poi-ooxml/build.gradle
@@ -276,6 +276,13 @@ javadoc {
}
}
+javadocJar {
+ metaInf {
+ from("$projectDir/../legal/LICENSE")
+ from("$projectDir/../legal/NOTICE")
+ }
+}
+
artifacts {
tests testJar
}
diff --git a/poi-scratchpad/build.gradle b/poi-scratchpad/build.gradle
index 94ca0350c8..220df5aafc 100644
--- a/poi-scratchpad/build.gradle
+++ b/poi-scratchpad/build.gradle
@@ -144,6 +144,13 @@ javadoc {
}
}
+javadocJar {
+ metaInf {
+ from("$projectDir/../legal/LICENSE")
+ from("$projectDir/../legal/NOTICE")
+ }
+}
+
artifacts {
tests testJar
}
diff --git a/poi/build.gradle b/poi/build.gradle
index 995972f92a..16591f78c4 100644
--- a/poi/build.gradle
+++ b/poi/build.gradle
@@ -175,6 +175,13 @@ javadoc {
}
}
+javadocJar {
+ metaInf {
+ from("$projectDir/../legal/LICENSE")
+ from("$projectDir/../legal/NOTICE")
+ }
+}
+
artifacts {
tests testJar
}