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
This commit is contained in:
PJ Fanning 2021-10-25 22:29:10 +00:00
parent a5325cb112
commit e66486bc8a
5 changed files with 35 additions and 0 deletions

View File

@ -87,3 +87,10 @@ jar {
attributes('Automatic-Module-Name': MODULE_NAME, 'Multi-Release': 'true')
}
}
javadocJar {
metaInf {
from("$projectDir/../legal/LICENSE")
from("$projectDir/../legal/NOTICE")
}
}

View File

@ -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 ] ) {

View File

@ -276,6 +276,13 @@ javadoc {
}
}
javadocJar {
metaInf {
from("$projectDir/../legal/LICENSE")
from("$projectDir/../legal/NOTICE")
}
}
artifacts {
tests testJar
}

View File

@ -144,6 +144,13 @@ javadoc {
}
}
javadocJar {
metaInf {
from("$projectDir/../legal/LICENSE")
from("$projectDir/../legal/NOTICE")
}
}
artifacts {
tests testJar
}

View File

@ -175,6 +175,13 @@ javadoc {
}
}
javadocJar {
metaInf {
from("$projectDir/../legal/LICENSE")
from("$projectDir/../legal/NOTICE")
}
}
artifacts {
tests testJar
}