summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}