You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/09/01 23:57:39 UTC

[commons-vfs] branch master updated: [VFS-729] Upgrade hadoop to 2.7.4 or later; will use current 3.2.0.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new f294a35  [VFS-729] Upgrade hadoop to 2.7.4 or later; will use current 3.2.0.
f294a35 is described below

commit f294a35535bc2a88299fa54297ffc029c6ccba4a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Sep 1 19:57:36 2019 -0400

    [VFS-729] Upgrade hadoop to 2.7.4 or later; will use current 3.2.0.
    
    Also adds GitHub Actions build.
---
 .github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++
 commons-vfs2/pom.xml        |  5 +++++
 pom.xml                     |  9 +++++++--
 src/changes/changes.xml     |  3 +++
 4 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000..f90af52
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: Java CI
+
+on: [push]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        java: [ '1.8', '11.0.4', '12.0.2' ]
+        
+    steps:
+    - uses: actions/checkout@v1
+    - name: Set up JDK ${{ matrix.java }}
+      uses: actions/setup-java@v1
+      with:
+        java-version: ${{ matrix.java }}
+    - name: Build with Maven
+      run: mvn -V package --file pom.xml
diff --git a/commons-vfs2/pom.xml b/commons-vfs2/pom.xml
index 697ef52..e565b93 100644
--- a/commons-vfs2/pom.xml
+++ b/commons-vfs2/pom.xml
@@ -61,6 +61,11 @@
     </dependency>
     <dependency>
       <groupId>org.apache.hadoop</groupId>
+      <artifactId>hadoop-hdfs-client</artifactId>
+      <version>${hadoop.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.hadoop</groupId>
       <artifactId>hadoop-common</artifactId>
       <optional>true</optional>
     </dependency>
diff --git a/pom.xml b/pom.xml
index 7037123..e4b7359 100644
--- a/pom.xml
+++ b/pom.xml
@@ -188,7 +188,7 @@
     <commons.clirr.version>2.6</commons.clirr.version>
     <!-- Avoid warnings about being unable to find jars during site building -->
     <dependency.locations.enabled>false</dependency.locations.enabled>
-    <hadoop.version>2.6.0</hadoop.version>
+    <hadoop.version>3.2.0</hadoop.version>
     <commons.surefire.version>2.19.1</commons.surefire.version>
     <commons.japicmp.version>0.14.1</commons.japicmp.version>
   </properties>
@@ -492,6 +492,12 @@
         <artifactId>mail</artifactId>
         <version>1.4.7</version>
       </dependency>
+      <!-- HDFS -->
+      <dependency>
+        <groupId>org.apache.hadoop</groupId>
+        <artifactId>hadoop-hdfs-client</artifactId>
+        <version>${hadoop.version}</version>
+      </dependency>
       <dependency>
         <groupId>org.apache.hadoop</groupId>
         <artifactId>hadoop-common</artifactId>
@@ -514,7 +520,6 @@
           </exclusion>
         </exclusions>
       </dependency>
-
       <!-- Testing -->
       <dependency>
         <groupId>junit</groupId>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 53e87ff..de97c7b 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -65,6 +65,9 @@ The <action> type attribute can be add,update,fix,remove.
       <action issue="VFS-728" dev="ggregory" type="update" due-to="Gary Gregory">
         Update Apache Commons Compress from 1.18 to 1.19.
       </action>
+      <action issue="VFS-729" dev="ggregory" type="update" due-to="Michiel Hendriks, Gary Gregory">
+        Upgrade hadoop to 2.7.4 or later; will use current 3.2.0.
+      </action>
     </release>
     <release version="2.4.1" date="2019-08-10" description="Bug fix release.">
       <action issue="VFS-725" dev="ggregory" type="fix" due-to="Gary Gregory">