From 79a476bcaaea7c3fe522e9e5bed5b9a29eedb094 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Fri, 8 Oct 2021 23:15:49 +0000 Subject: [PATCH] try to fix Java 11 build error git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894050 13f79535-47bb-0310-9956-ffa450edef68 --- poi-excelant/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-excelant/build.gradle b/poi-excelant/build.gradle index 968c8b4792..cd9b762067 100644 --- a/poi-excelant/build.gradle +++ b/poi-excelant/build.gradle @@ -54,7 +54,7 @@ final String MODULE_NAME = 'org.apache.poi.excelant' final Pattern MODULE_NOT_REGEX = ~'((poi|poi-ooxml|poi-scratchpad)[/\\\\][^/\\\\]+$|batik-script)' final Pattern MODULE_REGEX = ~'\\.jar$' final List MAIN_MODULE_PATH = sourceSets.main.runtimeClasspath.findAll{ it.path =~ MODULE_REGEX }.collect{ it.parent }.unique() -final List TEST_MODULE_PATH = sourceSets.test.runtimeClasspath.findAll{ it.path =~ MODULE_REGEX && !(it.path =~ MODULE_NOT_REGEX) }.collect{ it.parent }.unique() +final List TEST_MODULE_PATH = configurations.testRuntimeClasspath.findAll{ it.path =~ MODULE_REGEX && !(it.path =~ MODULE_NOT_REGEX) }.collect{ it.parent }.unique() final String OOXML_LITE_AGENT = "../build/dist/maven/poi-ooxml-lite-agent/poi-ooxml-lite-agent-${project.version}.jar" final String OOXML_LITE_REPORT = '../build/ooxml-lite-report'