From e66486bc8a22c92ad7a21befc452e7786611fdcb Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 25 Oct 2021 22:29:10 +0000 Subject: 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 --- poi-examples/build.gradle | 7 +++++++ poi-excelant/build.gradle | 7 +++++++ poi-ooxml/build.gradle | 7 +++++++ poi-scratchpad/build.gradle | 7 +++++++ poi/build.gradle | 7 +++++++ 5 files changed, 35 insertions(+) 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 } -- cgit v1.2.3