From 27e0842bcce8bef7125bfbe0d7ffd049acb27d7b Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sun, 18 Apr 2021 22:11:26 +0000 Subject: fix gradle builds to better comply with IntelliJ git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888936 13f79535-47bb-0310-9956-ffa450edef68 --- poi-ooxml-full/build.gradle | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'poi-ooxml-full') diff --git a/poi-ooxml-full/build.gradle b/poi-ooxml-full/build.gradle index b1fd44de93..d79da73deb 100644 --- a/poi-ooxml-full/build.gradle +++ b/poi-ooxml-full/build.gradle @@ -51,6 +51,14 @@ dependencies { runtimeOnly "org.apache.logging.log4j:log4j-core:${log4jVersion}" } +idea { + module { + // Marks the already(!) added srcDir as "generated" + generatedSourceDirs += file(BEANS_SRC) + resourceDirs += file(BEANS_RES) + } +} + final Pattern MODULE_REGEX = ~'\\.jar$' final List MAIN_MODULE_PATH = sourceSets.main.runtimeClasspath.findAll{ it.path =~ MODULE_REGEX }.collect{ it.parent }.unique() @@ -119,8 +127,8 @@ task generate_beans(dependsOn: copy_xsds) { if (!ant.properties.xmlbeans_uptodate) { ant.xmlbean( schema: 'build/xsds', - srcgendir: 'build/generated-sources', - classgendir: 'build/generated-resources', + srcgendir: BEANS_SRC, + classgendir: BEANS_RES, destfile: 'build/xsds.jar', srconly: true, failonerror: true, -- cgit v1.2.3