antdep 'org.apache.ant:ant:1.10.9'
}
- task downloadJarsToLibs() {
- def f = new File("$projectDir/../../lib/ooxml/xmlbeans-5.0.0.jar")
- if (!f.exists()) {
- println 'writing file ' + f.getAbsolutePath()
- f.getParentFile().mkdirs()
- new URL('https://ci-builds.apache.org/job/POI/job/POI-XMLBeans-DSL-1.8/lastSuccessfulBuild/artifact/build/xmlbeans-5.0.0.jar').withInputStream{ i -> f.withOutputStream{ it << i }}
- }
- }
-
// 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"
'ant-' + antTargetName
}
compileJava.dependsOn 'ant-compile-ooxml-xsds'
- compileJava.dependsOn 'downloadJarsToLibs'
dependencies {
api "org.apache.xmlbeans:xmlbeans:${xmlbeansVersion}"