You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@paimon.apache.org by lz...@apache.org on 2023/05/09 04:17:08 UTC

[incubator-paimon-trino] branch main updated: Fix publish snapshot error (#4)

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

lzljs3620320 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-paimon-trino.git


The following commit(s) were added to refs/heads/main by this push:
     new 49afdca  Fix publish snapshot error (#4)
49afdca is described below

commit 49afdca416888d2755be27ed2b459c6039b7393d
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Tue May 9 12:17:03 2023 +0800

    Fix publish snapshot error (#4)
---
 .github/workflows/publish_snapshot.yml             |  6 ++---
 ...ish_snapshot.yml => publish_snapshot_jdk17.yml} | 30 +++++++++++++++++-----
 2 files changed, 27 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot.yml
index 7af9e1a..47545c8 100644
--- a/.github/workflows/publish_snapshot.yml
+++ b/.github/workflows/publish_snapshot.yml
@@ -20,7 +20,7 @@ name: Publish Snapshot
 
 on:
   schedule:
-    # At the end of every day 1
+    # At the end of every day
     - cron: '0 0 * * *'
   workflow_dispatch:
 
@@ -38,7 +38,7 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v2
-      # temporarily publish the jdk8 version to maven
+      # temporarily publish the jdk11 version to maven
       # lately when jdk is deprecated, we need update it to jdk11
       - name: Set up JDK ${{ env.JDK_VERSION }}
         uses: actions/setup-java@v2
@@ -63,6 +63,6 @@ jobs:
           echo "<password>$ASF_PASSWORD</password>" >> $tmp_settings
           echo "</server></servers></settings>" >> $tmp_settings
           
-          mvn --settings $tmp_settings clean deploy -Dgpg.skip -Drat.skip -DskipTests -Papache-release
+          mvn --settings $tmp_settings clean deploy -Dgpg.skip -Drat.skip -DskipTests -Papache-release -pl paimon-trino-common,paimon-trino-358,paimon-trino-368,paimon-trino-369,paimon-trino-370,paimon-trino-388
           
           rm $tmp_settings
diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot_jdk17.yml
similarity index 75%
copy from .github/workflows/publish_snapshot.yml
copy to .github/workflows/publish_snapshot_jdk17.yml
index 7af9e1a..81970ee 100644
--- a/.github/workflows/publish_snapshot.yml
+++ b/.github/workflows/publish_snapshot_jdk17.yml
@@ -16,16 +16,16 @@
 # limitations under the License.
 ################################################################################
 
-name: Publish Snapshot
+name: Publish Snapshot JDK17
 
 on:
   schedule:
-    # At the end of every day 1
+    # At the end of every day
     - cron: '0 0 * * *'
   workflow_dispatch:
 
 env:
-  JDK_VERSION: 11
+  JDK_VERSION: 17
 
 concurrency:
   group: ps-${{ github.event.pull_request.number || github.ref }}
@@ -38,8 +38,7 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v2
-      # temporarily publish the jdk8 version to maven
-      # lately when jdk is deprecated, we need update it to jdk11
+      # temporarily publish the jdk17 version to maven
       - name: Set up JDK ${{ env.JDK_VERSION }}
         uses: actions/setup-java@v2
         with:
@@ -52,6 +51,25 @@ jobs:
           key: snapshot-maven-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             snapshot-maven-
+      - name: Set up Toolchain
+        shell: bash
+        run: |
+          mkdir -p $HOME/.m2 \
+          && cat << EOF > $HOME/.m2/toolchains.xml
+          <?xml version="1.0" encoding="UTF8"?>
+          <toolchains>
+          <toolchain>
+           <type>jdk</type>
+             <provides>
+               <version>17</version>
+               <vendor>adopt</vendor>
+             </provides>
+             <configuration>
+               <jdkHome>${{ env.JAVA_HOME }}</jdkHome>
+             </configuration>
+          </toolchain>
+          </toolchains>
+          EOF
       - name: Publish snapshot
         env:
           ASF_USERNAME: ${{ secrets.NEXUS_USER }}
@@ -63,6 +81,6 @@ jobs:
           echo "<password>$ASF_PASSWORD</password>" >> $tmp_settings
           echo "</server></servers></settings>" >> $tmp_settings
           
-          mvn --settings $tmp_settings clean deploy -Dgpg.skip -Drat.skip -DskipTests -Papache-release
+          mvn --settings $tmp_settings clean deploy -Dgpg.skip -Drat.skip -DskipTests -Papache-release -pl paimon-trino-common,paimon-trino-393
           
           rm $tmp_settings