You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2020/09/26 05:22:17 UTC
svn commit: r1882037 - /poi/trunk/build.gradle
Author: centic
Date: Sat Sep 26 05:22:17 2020
New Revision: 1882037
URL: http://svn.apache.org/viewvc?rev=1882037&view=rev
Log:
More changes to make the Gradle build work again
We have to compile the custom Ant-tasks before invoking Ant from Gradle
Modified:
poi/trunk/build.gradle
Modified: poi/trunk/build.gradle
URL: http://svn.apache.org/viewvc/poi/trunk/build.gradle?rev=1882037&r1=1882036&r2=1882037&view=diff
==============================================================================
--- poi/trunk/build.gradle (original)
+++ poi/trunk/build.gradle Sat Sep 26 05:22:17 2020
@@ -241,6 +241,19 @@ project('ooxml') {
sourceSets.main.resources.srcDirs = ['../../src/ooxml/resources', '../../src/resources/ooxml']
sourceSets.test.java.srcDirs = ['../../src/ooxml/testcases']
+ configurations {
+ antdep
+ }
+
+ dependencies {
+ antdep 'org.apache.ant:ant:1.10.8'
+ }
+
+ // we need to ensure that the custom ant tasks are compiled before we import the build.xml file
+ ant.mkdir(dir: "../../build/poi-ant-contrib")
+ ant.javac(srcdir: "../../src/excelant/poi-ant-contrib", destdir: "../../build/poi-ant-contrib",
+ classpath: configurations.antdep.asPath)
+
// for now import the ant-task for building the jars from build.xml
// we need to rename the tasks as e.g. task "jar" conflicts with :ooxml:jar
ant.importBuild('../../build.xml') { antTargetName ->
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org