Update third party libraries in pom.xml and build.gradle, update JaCoCo to 0.8.6

Maven build should work onw, but Gradle is still broken by the poi-ant-contrib library
Also remove outdated third party libraries

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2020-09-25 19:39:49 +00:00
parent ceae0d0903
commit 7b83320f9e
6 changed files with 59 additions and 34 deletions

View File

@ -45,8 +45,8 @@ configurations {
dependencies {
antLibs("junit:junit:4.13")
antLibs("org.apache.ant:ant-junit:1.10.4")
antLibs("org.apache.ant:ant-junit4:1.10.4")
antLibs("org.apache.ant:ant-junit:1.10.8")
antLibs("org.apache.ant:ant-junit4:1.10.8")
}
ant.taskdef(name: "junit",
@ -152,7 +152,7 @@ subprojects {
}
jacoco {
toolVersion = '0.8.5'
toolVersion = '0.8.6'
}
// ensure the build-dir exists
@ -301,7 +301,7 @@ project('excelant') {
sourceSets.test.java.srcDirs = ['../../src/excelant/testcases']
dependencies {
compile 'org.apache.ant:ant:1.10.4'
compile 'org.apache.ant:ant:1.10.8'
compile project(':main')
compile project(':ooxml')
@ -323,7 +323,7 @@ project('integrationtest') {
sourceSets.test.java.srcDirs = ['../../src/integrationtest']
dependencies {
compile 'org.apache.ant:ant:1.10.4'
compile 'org.apache.ant:ant:1.10.8'
compile project(':main')
compile project(':ooxml')

View File

@ -311,7 +311,7 @@ under the License.
<dependency prefix="ooxml.test.javassist" artifact="org.javassist:javassist:3.27.0-GA" usage="ooxml-tests"/>
<!-- coverage libs -->
<dependency prefix="jacoco" artifact="org.jacoco:jacoco:0.8.5" usage="util" packaging="zip"/>
<dependency prefix="jacoco" artifact="org.jacoco:jacoco:0.8.6" usage="util" packaging="zip"/>
<dependency prefix="asm" artifact="org.ow2.asm:asm:9.0-beta" usage="util"/>
<dependency prefix="asm-commons" artifact="org.ow2.asm:asm-commons:9.0-beta" usage="util"/>
<dependency prefix="asm-tree" artifact="org.ow2.asm:asm-tree:9.0-beta" usage="util"/>
@ -592,9 +592,34 @@ under the License.
<delete dir="compile-lib" failonerror="false"/>
<delete dir="ooxml-lib" failonerror="false"/>
<delete dir="ooxml-testlib" failonerror="false"/>
<delete dir="${basedir}/lib" includes="*.jar" failonerror="false"/>
<delete failonerror="false">
<fileset dir="lib/main-tests" includes="hamcrest-core*"/>
<delete verbose="true" failonerror="false">
<fileset dir="${basedir}/lib" includes="*.jar"/>
<fileset dir="${basedir}/lib/excelant">
<include name="ant*-1.10.1.jar"/>
</fileset>
<fileset dir="${basedir}/lib/main-tests">
<include name="mockito-core-3.2.4.jar"/>
<include name="hamcrest-core*"/>
</fileset>
<fileset dir="${basedir}/lib/ooxml">
<include name="xmlbeans-3.1.0.jar"/>
</fileset>
<fileset dir="${basedir}/lib/ooxml-provided">
<include name="bcpkix-jdk15on-1.65.jar"/>
<include name="bcprov-ext-jdk15on-1.65.jar"/>
</fileset>
<fileset dir="${basedir}/lib/ooxml-tests">
<include name="guava-20.0.jar"/>
</fileset>
<fileset dir="${basedir}/lib/util">
<include name="asm*7.2.jar"/>
</fileset>
<fileset dir="${basedir}/lib/util">
<include name="jacoco-0.8.5.zip"/>
</fileset>
<fileset dir="${basedir}/lib/excelant">
<include name="ant*1.10.1.jar"/>
</fileset>
</delete>
<condition property="jars.present">

View File

@ -29,12 +29,12 @@
</goals>
<configuration>
<outputDirectory>${basedir}/src/main/java</outputDirectory>
<resources>
<resources>
<resource>
<directory>../../src/excelant/java</directory>
</resource>
</resources>
</configuration>
</resources>
</configuration>
</execution>
<execution>
<id>copy-resources</id>
@ -45,12 +45,12 @@
</goals>
<configuration>
<outputDirectory>${basedir}/src/main/resources</outputDirectory>
<resources>
<resources>
<resource>
<directory>../../src/excelant/resources</directory>
</resource>
</resources>
</configuration>
</resources>
</configuration>
</execution>
<execution>
<id>copy-tests</id>
@ -61,12 +61,12 @@
</goals>
<configuration>
<outputDirectory>${basedir}/src/test/java</outputDirectory>
<resources>
<resources>
<resource>
<directory>../../src/excelant/testcases</directory>
</resource>
</resources>
</configuration>
</resources>
</configuration>
</execution>
</executions>
</plugin>
@ -82,7 +82,7 @@
</fileset>
</filesets>
</configuration>
</plugin>
</plugin>
</plugins>
</build>
@ -108,7 +108,7 @@
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.1</version>
<version>1.10.8</version>
</dependency>
</dependencies>
</project>

View File

@ -96,20 +96,20 @@
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.11</version>
<version>0.9.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>1.19</version>
<version>1.25</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.7</version>
<version>1.10.8</version>
<scope>test</scope>
</dependency>

View File

@ -137,17 +137,17 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.65</version>
<version>1.66</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.65</version>
<version>1.66</version>
</dependency>
<dependency>
<groupId>org.apache.santuario</groupId>
<artifactId>xmlsec</artifactId>
<version>2.1.5</version>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
@ -169,20 +169,20 @@
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.11</version>
<version>0.9.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>1.19</version>
<version>1.25</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>1.19</version>
<version>1.25</version>
<scope>test</scope>
</dependency>
@ -190,7 +190,7 @@
<!-- don't add it to the distribution -->
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-all</artifactId>
<version>1.11</version>
<version>1.13</version>
</dependency>
</dependencies>
</project>

View File

@ -81,10 +81,10 @@
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<!-- define some of the third-party or plugin-versions globally to use the same in all modules -->
<xmlbeans.version>3.1.0</xmlbeans.version>
<xmlbeans.version>4.0.0</xmlbeans.version>
<junit.version>4.13</junit.version>
<xmlunit.version>2.6.3</xmlunit.version>
<mockito.version>2.13.0</mockito.version>
<xmlunit.version>2.7.0</xmlunit.version>
<mockito.version>3.5.0</mockito.version>
<maven.plugin.resources.version>3.1.0</maven.plugin.resources.version>
<maven.plugin.jar.version>3.2.0</maven.plugin.jar.version>
<maven.plugin.clean.version>3.1.0</maven.plugin.clean.version>
@ -145,7 +145,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<version>0.8.6</version>
<executions>
<execution>
<goals>