aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml-lite
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2022-03-24 04:42:27 +0000
committerDominik Stadler <centic@apache.org>2022-03-24 04:42:27 +0000
commit09e464bb5f6d8880e79a2beed45760ddfafb62a7 (patch)
tree366caa8a45d0d1aeb35a2b7e5af96952c46f85bf /poi-ooxml-lite
parenta59e17590a8077bea775e24776930bd412ef946c (diff)
downloadpoi-09e464bb5f6d8880e79a2beed45760ddfafb62a7.tar.gz
poi-09e464bb5f6d8880e79a2beed45760ddfafb62a7.zip
poi-ooxml-lite: Check in list of classes and xsb-files to avoid the jar-to-test dependency
Avoid running all tests whenever building jars as tests take a long time now and also cause large memory allocations. It is nice if the target "jar" is as fast as possible and the list of included items for ooxml-lite only changes rarely anyway. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899160 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml-lite')
-rw-r--r--poi-ooxml-lite/build.gradle9
1 files changed, 2 insertions, 7 deletions
diff --git a/poi-ooxml-lite/build.gradle b/poi-ooxml-lite/build.gradle
index 90a4abfb4e..7f6c5a4776 100644
--- a/poi-ooxml-lite/build.gradle
+++ b/poi-ooxml-lite/build.gradle
@@ -38,17 +38,14 @@ sourceSets {
dependencies {
api "org.apache.xmlbeans:xmlbeans:${xmlbeansVersion}"
compileOnly project(':poi-ooxml-full')
- compileOnly project(path:':poi-integration', configuration:'tests')
}
final MODULE_NAME = 'org.apache.poi.ooxml.schemas'
final Pattern MODULE_REGEX = ~'\\.jar$'
final List MAIN_MODULE_PATH = sourceSets.main.runtimeClasspath.findAll{ it.path =~ MODULE_REGEX }.collect{ it.parent }.unique()
-final String OOXML_LITE_REPORT = '../build/ooxml-lite-report'
+final String OOXML_LITE_REPORT = '../src/resources/ooxml-lite-report'
task generateModuleInfo() {
- dependsOn ':poi-ooxml:build', ':poi-integration:build', ':poi-excelant:build'
-
File fileIn = file("${OOXML_LITE_REPORT}.clazz")
File fileOut = file("src/main/java9/module-info.java")
@@ -71,7 +68,7 @@ task generateModuleInfo() {
}
task compileOoxmlLite(type: Copy) {
- dependsOn 'generateModuleInfo'
+ dependsOn 'generateModuleInfo', ':poi-ooxml-full:generate_beans'
// This task is currently always executed, because gradle thinks files with two dollar signs
// (as in AlternateContentDocument$AlternateContent$Choice.class) are always stale
@@ -128,8 +125,6 @@ task cacheJava9(type: Copy, dependsOn: 'compileJava9') {
}
jar {
- dependsOn ':poi-ooxml:test', ':poi-integration:test'
-
destinationDirectory = file("../build/dist/maven/${project.archivesBaseName}")
doFirst {