aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml-full
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-04-18 22:11:26 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-04-18 22:11:26 +0000
commit27e0842bcce8bef7125bfbe0d7ffd049acb27d7b (patch)
tree4870880e9439f3082fa088213a5396b34634aec1 /poi-ooxml-full
parent9392b464e3b707b8ee544d0b03ffb106ea5ee0a8 (diff)
downloadpoi-27e0842bcce8bef7125bfbe0d7ffd049acb27d7b.tar.gz
poi-27e0842bcce8bef7125bfbe0d7ffd049acb27d7b.zip
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
Diffstat (limited to 'poi-ooxml-full')
-rw-r--r--poi-ooxml-full/build.gradle12
1 files changed, 10 insertions, 2 deletions
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,