You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2019/08/12 23:12:26 UTC

[arrow] branch master updated: ARROW-5786: [Release] Use arrow-jni profile to run "mvm release:perform"

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

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 71ae74b  ARROW-5786: [Release] Use arrow-jni profile to run "mvm release:perform"
71ae74b is described below

commit 71ae74b4fd4a7c95c7a326f5093ab98ad3472275
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Tue Aug 13 08:12:07 2019 +0900

    ARROW-5786: [Release] Use arrow-jni profile to run "mvm release:perform"
    
    It's for including Gandiva and ORC support.
    
    I don't test this yet. Because we need "mvm release:prepare"-ed
    environment to test this.
    
    Closes #5003 from kou/release-use-arrow-jni-profile-for-perform and squashes the following commits:
    
    149ae8e3e <Sutou Kouhei>  Use arrow-jni profile to run "mvm release:perform"
    
    Authored-by: Sutou Kouhei <ko...@clear-code.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 dev/release/01-perform.sh | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

diff --git a/dev/release/01-perform.sh b/dev/release/01-perform.sh
index 30e6391..94ae61f 100755
--- a/dev/release/01-perform.sh
+++ b/dev/release/01-perform.sh
@@ -19,12 +19,32 @@
 #
 set -e
 
-SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
 
 pushd "${SOURCE_DIR}/../../java"
-
 git submodule update --init --recursive
+
+profile=arrow-jni # this includes components which depend on arrow cpp.
+
+cpp_dir="${PWD}/../cpp"
+cpp_build_dir=$(mktemp -d -t "apache-arrow-cpp.XXXXX")
+pushd ${cpp_build_dir}
+cmake \
+  -DARROW_GANDIVA=ON \
+  -DARROW_GANDIVA_JAVA=ON \
+  -DARROW_JNI=ON \
+  -DARROW_ORC=ON \
+  -DCMAKE_BUILD_TYPE=release \
+  -G Ninja \
+  "${cpp_dir}"
+ninja
+popd
+
 export ARROW_TEST_DATA=${PWD}/../testing/data
-mvn release:perform
+mvn \
+  release:perform \
+  -Darguments=-Darrow.cpp.build.dir=${cpp_build_dir}/release \
+  -P ${profile}
+rm -rf ${cpp_build_dir}
 
 popd