]> source.dussan.org Git - poi.git/commitdiff
Update third party libraries in pom.xml and build.gradle, update JaCoCo to 0.8.6
authorDominik Stadler <centic@apache.org>
Fri, 25 Sep 2020 19:39:49 +0000 (19:39 +0000)
committerDominik Stadler <centic@apache.org>
Fri, 25 Sep 2020 19:39:49 +0000 (19:39 +0000)
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

build.gradle
build.xml
sonar/excelant/pom.xml
sonar/integration-test/pom.xml
sonar/ooxml/pom.xml
sonar/pom.xml

index 2c973dc748e84a052ef57188ac7d372863cc11a3..83277719fb9207caa379c69dc938e93178ab5f2b 100644 (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')
index b53686e1b91f468c6014df189e05e6726de53efd..46308cc2b527d03ef6dc61a5ee32241875a3dcf5 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -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">
index 692876ac7a1519904804d0e42ff13539abb52507..0bea755b417ee94a330941e5c89543af5369cff3 100644 (file)
                                                </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>
                                                </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>
                                                </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>
 
                <dependency>
                        <groupId>org.apache.ant</groupId>
                        <artifactId>ant</artifactId>
-                       <version>1.10.1</version>
+                       <version>1.10.8</version>
         </dependency>
     </dependencies>
 </project>
index 38a817eeec281cfb35f92e90d91bc35770fbdd60..668c6469b35ea2b8b783074d9b347ffaaf1eb501 100644 (file)
         <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>
 
index 505e5f1dc60a568e0fedbfc662f02675fd09e0ee..17c383eb1ed90615db268b2a657c91896d4e9a1a 100644 (file)
         <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>
         <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>
 
             <!-- 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>
index 02b314ce3d06d018cea8419e784dc201b25a72d4..ab8a8faa8960bd1031eb11e5a8721a0b6852f1ab 100644 (file)
         <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>
             <plugin>
                 <groupId>org.jacoco</groupId>
                 <artifactId>jacoco-maven-plugin</artifactId>
-                <version>0.8.5</version>
+                <version>0.8.6</version>
                 <executions>
                     <execution>
                         <goals>