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 2021/11/12 04:41:20 UTC

[arrow] branch master updated: ARROW-14683: [Release][Java] Build missing source-release.zip

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 2b51f7c  ARROW-14683: [Release][Java] Build missing source-release.zip
2b51f7c is described below

commit 2b51f7cb4e53e38c4a63afc10f379d1b582b62a1
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Fri Nov 12 13:39:41 2021 +0900

    ARROW-14683: [Release][Java] Build missing source-release.zip
    
    Closes #11684 from kou/release-java-source-release
    
    Authored-by: Sutou Kouhei <ko...@clear-code.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 ci/scripts/java_full_build.sh  | 15 ++++++++++++++-
 dev/tasks/java-jars/github.yml |  4 +++-
 dev/tasks/tasks.yml            |  2 +-
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/ci/scripts/java_full_build.sh b/ci/scripts/java_full_build.sh
index df80d18..6f12a2f 100755
--- a/ci/scripts/java_full_build.sh
+++ b/ci/scripts/java_full_build.sh
@@ -26,15 +26,28 @@ export ARROW_TEST_DATA=${arrow_dir}/testing/data
 
 pushd ${arrow_dir}/java
 
+# generate dummy GPG key for -Papache-release.
+# -Papache-release generates signs (*.asc) of artifacts.
+# We don't use these signs in our release process.
+(echo "Key-Type: RSA"; \
+ echo "Key-Length: 4096"; \
+ echo "Name-Real: Build"; \
+ echo "Name-Email: build@example.com"; \
+ echo "%no-protection") | \
+  gpg --full-generate-key --batch
+
 # build the entire project
 mvn clean \
     install \
+    assembly:single \
     source:jar \
     javadoc:jar \
+    -Papache-release \
     -Parrow-c-data \
     -Parrow-jni \
     -Darrow.cpp.build.dir=$dist_dir \
-    -Darrow.c.jni.dist.dir=$dist_dir
+    -Darrow.c.jni.dist.dir=$dist_dir \
+    -DdescriptorId=source-release
 
 # copy all jar, zip and pom files to the distribution folder
 find . \
diff --git a/dev/tasks/java-jars/github.yml b/dev/tasks/java-jars/github.yml
index 81d31dd..221f985 100644
--- a/dev/tasks/java-jars/github.yml
+++ b/dev/tasks/java-jars/github.yml
@@ -112,4 +112,6 @@ jobs:
           arrow/ci/scripts/java_full_build.sh \
             $GITHUB_WORKSPACE/arrow \
             $GITHUB_WORKSPACE/arrow/java-dist
-      {{ macros.github_upload_releases(["arrow/java-dist/*.jar", "arrow/java-dist/*.pom"])|indent }}
+      {{ macros.github_upload_releases(["arrow/java-dist/*.jar",
+                                        "arrow/java-dist/*.pom",
+                                        "arrow/java-dist/*.zip"])|indent }}
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 4e30427..cfa6a79 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -728,7 +728,7 @@ tasks:
       - arrow-gandiva-{no_rc_version}-tests.jar
       - arrow-gandiva-{no_rc_version}.jar
       - arrow-gandiva-{no_rc_version}.pom
-      # - arrow-java-root-{no_rc_version}-source-release.zip
+      - arrow-java-root-{no_rc_version}-source-release.zip
       - arrow-java-root-{no_rc_version}.pom
       - arrow-jdbc-{no_rc_version}-javadoc.jar
       - arrow-jdbc-{no_rc_version}-sources.jar