mirror of https://github.com/apache/poi.git
try to add LICENSE and NOTICE to sources jars
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894565 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e66486bc8a
commit
90b8a0c36d
|
@ -94,3 +94,10 @@ javadocJar {
|
||||||
from("$projectDir/../legal/NOTICE")
|
from("$projectDir/../legal/NOTICE")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourcesJar {
|
||||||
|
metaInf {
|
||||||
|
from("$projectDir/../legal/LICENSE")
|
||||||
|
from("$projectDir/../legal/NOTICE")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
// Create a separate jar for test-code to depend on it in other projects
|
||||||
// See http://stackoverflow.com/questions/5144325/gradle-test-dependency
|
// See http://stackoverflow.com/questions/5144325/gradle-test-dependency
|
||||||
task testJar(type: Jar, dependsOn: [ testClasses, cacheTest9 ] ) {
|
task testJar(type: Jar, dependsOn: [ testClasses, cacheTest9 ] ) {
|
||||||
|
|
|
@ -149,6 +149,13 @@ jar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourcesJar {
|
||||||
|
metaInf {
|
||||||
|
from("$projectDir/../legal/LICENSE")
|
||||||
|
from("$projectDir/../legal/NOTICE")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
POI(MavenPublication) {
|
POI(MavenPublication) {
|
||||||
|
|
|
@ -129,7 +129,8 @@ jar {
|
||||||
File missingXsbsFile = file("missing-xsbs.txt")
|
File missingXsbsFile = file("missing-xsbs.txt")
|
||||||
List xsbs2 = missingXsbsFile.findAll { !it.empty && !it.startsWith("#") }
|
List xsbs2 = missingXsbsFile.findAll { !it.empty && !it.startsWith("#") }
|
||||||
.collect { "org/apache/poi/schemas/ooxml/system/ooxml/${it.trim()}.xsb" }
|
.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/**']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -283,6 +283,13 @@ javadocJar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourcesJar {
|
||||||
|
metaInf {
|
||||||
|
from("$projectDir/../legal/LICENSE")
|
||||||
|
from("$projectDir/../legal/NOTICE")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
tests testJar
|
tests testJar
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,6 +151,13 @@ javadocJar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourcesJar {
|
||||||
|
metaInf {
|
||||||
|
from("$projectDir/../legal/LICENSE")
|
||||||
|
from("$projectDir/../legal/NOTICE")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
tests testJar
|
tests testJar
|
||||||
}
|
}
|
||||||
|
|
|
@ -182,6 +182,13 @@ javadocJar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourcesJar {
|
||||||
|
metaInf {
|
||||||
|
from("$projectDir/../legal/LICENSE")
|
||||||
|
from("$projectDir/../legal/NOTICE")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
tests testJar
|
tests testJar
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue