You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by ja...@apache.org on 2021/12/11 18:30:09 UTC

[calcite] branch build-test updated (aeb1e1a -> b9e7d69)

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

jacques pushed a change to branch build-test
in repository https://gitbox.apache.org/repos/asf/calcite.git.


    omit aeb1e1a  [CALCITE-4934] Deploy snapshots releases on master merge
     new b9e7d69  [CALCITE-4934] Deploy snapshots releases on master merge

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (aeb1e1a)
            \
             N -- N -- N   refs/heads/build-test (b9e7d69)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/publish-snapshot.yml | 1 -
 1 file changed, 1 deletion(-)

[calcite] 01/01: [CALCITE-4934] Deploy snapshots releases on master merge

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jacques pushed a commit to branch build-test
in repository https://gitbox.apache.org/repos/asf/calcite.git

commit b9e7d6944c8db912c071dcced9efad4371b9913f
Author: Jacques Nadeau <ja...@apache.org>
AuthorDate: Sat Dec 11 10:24:21 2021 -0800

    [CALCITE-4934] Deploy snapshots releases on master merge
---
 .github/workflows/publish-snapshot.yml | 38 ++++++++++++++++++++++++++++++++++
 build.gradle.kts                       | 12 +++++++++++
 2 files changed, 50 insertions(+)

diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml
new file mode 100644
index 0000000..82a6699
--- /dev/null
+++ b/.github/workflows/publish-snapshot.yml
@@ -0,0 +1,38 @@
+#
+# 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: "Publish Snapshot to Maven"
+on:
+  push:
+    branches: [ master, build-test  ]
+
+jobs:
+  publish-snapshot:
+    if: github.repository_owner == 'apache'
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          # we need to fetch all tags so that getProjectVersion() in build.gradle correctly determines the next SNAPSHOT version from the newest tag
+          fetch-depth: 0
+      - uses: actions/setup-java@v1
+        with:
+          java-version: 8
+      - run: |
+          ./gradlew publishCalcitePublicationToApacheSnapshotRepository -PnexusSnapshotUser=${{ secrets.NEXUS_USER }} -PnexusSnapshotPassword=${{ secrets.NEXUS_PW }}
diff --git a/build.gradle.kts b/build.gradle.kts
index cf40a12..9f64bf5 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -806,6 +806,18 @@ allprojects {
                 // Do not publish "root" project. Java plugin is applied here for DSL purposes only
                 return@configure
             }
+
+            repositories {
+                maven {
+                    name = "ApacheSnapshot" //  optional target repository name
+                    url = uri("https://repository.apache.org/content/repositories/snapshots")
+                    credentials {
+                        username = (project.properties["nexusSnapshotUser"] ?: "").toString()
+                        password = (project.properties["nexusSnapshotPassword"] ?: "").toString()
+                    }
+                }
+            }
+
             if (!project.props.bool("nexus.publish", default = true)) {
                 // Some of the artifacts do not need to be published
                 return@configure