diff options
-rw-r--r-- | poi-examples/build.gradle | 7 | ||||
-rw-r--r-- | poi-excelant/build.gradle | 7 | ||||
-rw-r--r-- | poi-ooxml-full/build.gradle | 7 | ||||
-rw-r--r-- | poi-ooxml-lite/build.gradle | 3 | ||||
-rw-r--r-- | poi-ooxml/build.gradle | 7 | ||||
-rw-r--r-- | poi-scratchpad/build.gradle | 7 | ||||
-rw-r--r-- | poi/build.gradle | 7 |
7 files changed, 44 insertions, 1 deletions
diff --git a/poi-examples/build.gradle b/poi-examples/build.gradle index 3034d955ac..5c1c7a54e5 100644 --- a/poi-examples/build.gradle +++ b/poi-examples/build.gradle @@ -94,3 +94,10 @@ javadocJar { from("$projectDir/../legal/NOTICE") } } + +sourcesJar { + metaInf { + from("$projectDir/../legal/LICENSE") + from("$projectDir/../legal/NOTICE") + } +} diff --git a/poi-excelant/build.gradle b/poi-excelant/build.gradle index 1de82e2cd6..3838b58e8d 100644 --- a/poi-excelant/build.gradle +++ b/poi-excelant/build.gradle @@ -127,6 +127,13 @@ javadocJar { } } +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, cacheTest9 ] ) { diff --git a/poi-ooxml-full/build.gradle b/poi-ooxml-full/build.gradle index 8808c6fcc2..cadfa3cf89 100644 --- a/poi-ooxml-full/build.gradle +++ b/poi-ooxml-full/build.gradle @@ -149,6 +149,13 @@ jar { } } +sourcesJar { + metaInf { + from("$projectDir/../legal/LICENSE") + from("$projectDir/../legal/NOTICE") + } +} + publishing { publications { POI(MavenPublication) { diff --git a/poi-ooxml-lite/build.gradle b/poi-ooxml-lite/build.gradle index 6138200762..6b10453af9 100644 --- a/poi-ooxml-lite/build.gradle +++ b/poi-ooxml-lite/build.gradle @@ -129,7 +129,8 @@ 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/**', 'org/apache/poi/schemas/ooxml/element/**'] + includes = clazz + clazzInner + xsbs + xsbs2 + + ['META-INF/versions/**', 'META-INF/LICENSE', 'META-INF/NOTICE', 'org/apache/poi/schemas/ooxml/element/**'] } } diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle index 239d8faeca..d0fd2cae63 100644 --- a/poi-ooxml/build.gradle +++ b/poi-ooxml/build.gradle @@ -283,6 +283,13 @@ javadocJar { } } +sourcesJar { + 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 220df5aafc..6b7781df5b 100644 --- a/poi-scratchpad/build.gradle +++ b/poi-scratchpad/build.gradle @@ -151,6 +151,13 @@ javadocJar { } } +sourcesJar { + metaInf { + from("$projectDir/../legal/LICENSE") + from("$projectDir/../legal/NOTICE") + } +} + artifacts { tests testJar } diff --git a/poi/build.gradle b/poi/build.gradle index 16591f78c4..21b4627d3e 100644 --- a/poi/build.gradle +++ b/poi/build.gradle @@ -182,6 +182,13 @@ javadocJar { } } +sourcesJar { + metaInf { + from("$projectDir/../legal/LICENSE") + from("$projectDir/../legal/NOTICE") + } +} + artifacts { tests testJar } |