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/**', 'META-INF/LICENSE', 'META-INF/NOTICE', 'org/apache/poi/schemas/ooxml/element/**']
+ includes = clazz + clazzInner + xsbs + xsbs2 + ['META-INF/versions/**', 'org/apache/poi/schemas/ooxml/element/**']
}
}
}
}
+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) {