You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2021/08/06 05:18:02 UTC

[incubator-kyuubi] branch master updated: [KYUUBI #889] [BUILD] Package release tarball

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

chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new 2039439  [KYUUBI #889] [BUILD] Package release tarball
2039439 is described below

commit 20394398c039ab911eb921dccc662075e97469f3
Author: Cheng Pan <ch...@apache.org>
AuthorDate: Fri Aug 6 13:17:51 2021 +0800

    [KYUUBI #889] [BUILD] Package release tarball
    
    <!--
    Thanks for sending a pull request!
    
    Here are some tips for you:
      1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html
      2. If the PR is related to an issue in https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'.
      3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'.
    -->
    
    ### _Why are the changes needed?_
    <!--
    Please clarify why the changes are needed. For instance,
      1. If you add a feature, you can talk about the use case of it.
      2. If you fix a bug, you can clarify why it is a bug.
    -->
    ```
    export RELEASE_VERSION=1.3.0-SNAPSHOT # keep same version with pom.xml
    export SKIP_GPG=false                 # optional, default false
    build/release/create-package.sh source
    build/release/create-package.sh binary
    ```
    ```
    ➜  apache-kyuubi git:(asf-pub) ls -lh work/release
    total 161256
    -rw-r--r--  1 chengpan  staff    60M Aug  4 15:12 kyuubi-1.3.0-SNAPSHOT-bin.tgz
    -rw-r--r--  1 chengpan  staff   488B Aug  4 15:12 kyuubi-1.3.0-SNAPSHOT-bin.tgz.asc
    -rw-r--r--  1 chengpan  staff   212B Aug  4 15:12 kyuubi-1.3.0-SNAPSHOT-bin.tgz.sha512
    -rw-r--r--  1 chengpan  staff    18M Aug  4 15:10 kyuubi-1.3.0-SNAPSHOT-source.tgz
    -rw-r--r--  1 chengpan  staff   488B Aug  4 15:10 kyuubi-1.3.0-SNAPSHOT-source.tgz.asc
    -rw-r--r--  1 chengpan  staff   215B Aug  4 15:10 kyuubi-1.3.0-SNAPSHOT-source.tgz.sha512
    ```
    
    Planning to add release script and release doc in following PRs.
    
    ### _How was this patch tested?_
    - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
    
    - [ ] Add screenshots for manual tests if appropriate
    
    - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/tools/testing.html#running-tests) locally before make a pull request
    
    Closes #889 from pan3793/asf-package.
    
    Closes #889
    
    0aef5d77 [Cheng Pan] Update docs
    4b0be7da [Cheng Pan] [BUILD] Package release tarball
    
    Authored-by: Cheng Pan <ch...@apache.org>
    Signed-off-by: Cheng Pan <ch...@apache.org>
---
 .gitattributes                               |   3 +
 .gitignore                                   |   2 +-
 NOTICE                                       |  13 +--
 NOTICE-binary                                |  12 +++
 build/dist                                   |  24 +++---
 build/release/collect-licenses.sh            |  67 +++++++++++++++
 build/release/create-package.sh              |  98 ++++++++++++++++++++++
 build/util.sh                                |  38 +++++++++
 docs/develop_tools/distribution.md           |   4 +-
 docs/quick_start/quick_start.md              |   2 +-
 docs/quick_start/quick_start_with_dbeaver.md |   4 +-
 licenses-binary/LICENSE-CC0.txt              | 121 +++++++++++++++++++++++++++
 licenses-binary/LICENSE-scopt.txt            |   9 ++
 pom.xml                                      |   3 +-
 14 files changed, 373 insertions(+), 27 deletions(-)

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..586fd1a
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+licenses-binary/* export-ignore
+LICENSE-binary export-ignore
+NOTICE-binary export-ignore
diff --git a/.gitignore b/.gitignore
index 5ecb214..15e48aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,7 +29,7 @@ build/scala*
 build/test
 target/
 dist/
-kyuubi-*-bin-*
+kyuubi-*-bin*
 *.gz
 logs/
 pid/
diff --git a/NOTICE b/NOTICE
index 0b00b13..b56d4c3 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,7 +1,10 @@
-Kyuubi
+// ------------------------------------------------------------------
+// NOTICE file corresponding to the section 4d of The Apache License,
+// Version 2.0, in this case for Apache Kyuubi
+// ------------------------------------------------------------------
 
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
---------------------------------------------------------
+Apache Kyuubi
+Copyright 2021 and onwards The Apache Software Foundation.
 
-The web site includes files generated by Sphinx.
+This product includes software developed at
+The Apache Software Foundation (https://www.apache.org/).
diff --git a/NOTICE-binary b/NOTICE-binary
new file mode 100644
index 0000000..4c7f70a
--- /dev/null
+++ b/NOTICE-binary
@@ -0,0 +1,12 @@
+// ------------------------------------------------------------------
+// NOTICE file corresponding to the section 4d of The Apache License,
+// Version 2.0, in this case for Apache Kyuubi
+// ------------------------------------------------------------------
+
+Apache Kyuubi
+Copyright 2021 and onwards The Apache Software Foundation.
+
+This product includes software developed at
+The Apache Software Foundation (https://www.apache.org/).
+
+=====================================================================
diff --git a/build/dist b/build/dist
index 6df56e6..4326580 100755
--- a/build/dist
+++ b/build/dist
@@ -145,20 +145,19 @@ HIVE_VERSION=$("$MVN" help:evaluate -Dexpression=hive.version $@ 2>/dev/null\
 
 echo "Building Kyuubi package of version $VERSION against Spark version - $SPARK_VERSION"
 
+SUFFIX="-$NAME"
 if [[ "$NAME" == "none" ]]; then
-  SPARK_HADOOP_VERSION_SUFFIX="-hadoop${SPARK_HADOOP_VERSION}"
-
   if [[ "$SPARK_PROVIDED" == "true" ]]; then
-    NAME="without-spark"
+    SUFFIX=""
   else
-    NAME="spark-"${SPARK_VERSION:0:3}$SPARK_HADOOP_VERSION_SUFFIX
+    SUFFIX="-spark-${SPARK_VERSION:0:3}-hadoop${SPARK_HADOOP_VERSION}"
   fi
 fi
 
 if [[ "$MAKE_TGZ" == "true" ]]; then
-  echo "Making kyuubi-$VERSION-bin-$NAME.tar.gz"
+  echo "Making kyuubi-$VERSION-bin$SUFFIX.tgz"
 else
-  echo "Making distribution for Kyuubi $VERSION named $NAME in '$DISTDIR'..."
+  echo "Making distribution for Kyuubi $VERSION in '$DISTDIR'..."
 fi
 
 MVN_DIST_OPT="-DskipTests"
@@ -217,22 +216,19 @@ if [[ "$SPARK_PROVIDED" != "true" ]]; then
 fi
 
 # Copy license files
-if [ -e "$KYUUBI_HOME/LICENSE-binary" ]; then
-  cp "$KYUUBI_HOME/LICENSE-binary" "$DISTDIR/LICENSE"
-  cp -r "$KYUUBI_HOME/licenses-binary" "$DISTDIR/licenses"
-else
-  echo "Skipping copying LICENSE files"
-fi
+cp "$KYUUBI_HOME/LICENSE-binary" "$DISTDIR/LICENSE"
+cp -r "$KYUUBI_HOME/licenses-binary" "$DISTDIR/licenses"
+$KYUUBI_HOME/build/release/collect-licenses.sh "$DISTDIR" "$DISTDIR"
 
 cp -r "$KYUUBI_HOME/bin" "$DISTDIR"
 cp -r "$KYUUBI_HOME/conf" "$DISTDIR"
 cp -r "$KYUUBI_HOME/docker" "$DISTDIR"
 
 if [[ "$MAKE_TGZ" == "true" ]]; then
-  TARDIR_NAME=kyuubi-$VERSION-bin-$NAME
+  TARDIR_NAME="kyuubi-$VERSION-bin$SUFFIX"
   TARDIR="$KYUUBI_HOME/$TARDIR_NAME"
   rm -rf "$TARDIR"
   cp -r "$DISTDIR" "$TARDIR"
-  tar czf "$TARDIR_NAME.tar.gz" -C "$KYUUBI_HOME" "$TARDIR_NAME"
+  tar czf "$TARDIR_NAME.tgz" -C "$KYUUBI_HOME" "$TARDIR_NAME"
   rm -rf "$TARDIR"
 fi
diff --git a/build/release/collect-licenses.sh b/build/release/collect-licenses.sh
new file mode 100755
index 0000000..83f2d4a
--- /dev/null
+++ b/build/release/collect-licenses.sh
@@ -0,0 +1,67 @@
+#!/usr/bin/env bash
+
+#
+# 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.
+#
+
+# This script extracts from all jars in the specified directory the NOTICE files and the
+# licenses folders. It then concatenates all NOTICE files and collects the contents of all
+# licenses folders in the specified output directory.
+#
+# This tool can be used to generate a rough skeleton for the binary NOTICE file. Be aware,
+# that it does not deduplicate contents.
+
+set -o pipefail
+set -e
+set -x
+
+SRC=${1:-.}
+DST=${2:-licenses-output}
+KYUUBI_DIR="$(cd "$(dirname "$0")"/../..; pwd)"
+TMP="${DST}/tmp"
+NOTICE_BINARY_PREAMBLE="${KYUUBI_DIR}/NOTICE-binary"
+
+USAGE="$0 <SOURCE_DIRECTORY:-.> <OUTPUT_DIRECTORY:-licenses-output>"
+
+source "$KYUUBI_DIR/build/util.sh"
+
+if [ "${SRC}" = "-h" ]; then
+	echo "${USAGE}"
+	exit 0
+fi
+
+for jar_file in $(find -L "${SRC}" -name "*.jar" | grep -v "kyuubi-")
+do
+	DIR="${TMP}/$(basename -- "${jar_file}" .jar)"
+	mkdir -p "${DIR}"
+	JAR=$(realpath "${jar_file}")
+	(cd "${DIR}" && jar xf ${JAR} META-INF/NOTICE META-INF/licenses)
+done
+
+NOTICE="${DST}/NOTICE"
+[ -f "${NOTICE}" ] && rm "${NOTICE}"
+cp "${NOTICE_BINARY_PREAMBLE}" "${NOTICE}"
+(export LC_ALL=C; find "${TMP}" -name "NOTICE" | sort | xargs cat >> "${NOTICE}")
+
+LICENSES="${DST}/licenses"
+[ -f "${LICENSES}" ] && rm -r "${LICENSES}"
+find "${TMP}" -name "licenses" -type d -exec cp -r -- "{}" "${DST}" \;
+
+# Search and collect license files that not bundled in any jars.
+find "${SRC}" -name "LICENSE.*" -type f \
+! -path "${DST}/licenses/*" ! -path "${TMP}/licenses/*" -exec cp -- "{}" "${DST}/licenses" \;
+
+rm -r "${TMP}"
diff --git a/build/release/create-package.sh b/build/release/create-package.sh
new file mode 100755
index 0000000..7c7e707
--- /dev/null
+++ b/build/release/create-package.sh
@@ -0,0 +1,98 @@
+#!/usr/bin/env bash
+
+#
+# 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.
+#
+
+set -o pipefail
+set -e
+set -x
+
+SKIP_GPG=${SKIP_GPG:-false}
+RELEASE_VERSION=${RELEASE_VERSION:?"RELEASE_VERSION is required"}
+
+exit_with_usage() {
+  local NAME=$(basename $0)
+  cat << EOF
+Usage: $NAME <source|binary>
+
+Top level targets are:
+  source: Create source release tarball
+  binary: Create binary release tarball
+
+All other inputs are environment variables:
+
+RELEASE_VERSION - Release version, must match pom.xml (e.g. 1.3.0-incubating)
+SKIP_GPG        - (optional) Default false
+EOF
+  exit 1
+}
+
+KYUUBI_DIR="$(cd "$(dirname "$0")"/../..; pwd)"
+RELEASE_DIR="${KYUUBI_DIR}/work/release"
+
+SHASUM="sha512sum"
+if [ "$(uname)" == "Darwin" ]; then
+    SHASUM="shasum -a 512"
+fi
+
+package_source() {
+  SRC_TGZ_FILE="kyuubi-${RELEASE_VERSION}-source.tgz"
+  SRC_TGZ="${RELEASE_DIR}/${SRC_TGZ_FILE}"
+
+  mkdir -p "${RELEASE_DIR}"
+  rm -f "${SRC_TGZ}*"
+
+  echo "Creating source release tarball ${SRC_TGZ_FILE}"
+
+  git archive --prefix="kyuubi-${RELEASE_VERSION}-source/" -o "${SRC_TGZ}" HEAD
+
+  if [ "$SKIP_GPG" == "false" ] ; then
+    gpg --armor --detach-sig "${SRC_TGZ}"
+  fi
+  $SHASUM "${SRC_TGZ}" > "${SRC_TGZ}.sha512"
+}
+
+package_binary() {
+  BIN_TGZ_FILE="kyuubi-${RELEASE_VERSION}-bin.tgz"
+  BIN_TGZ="${RELEASE_DIR}/${BIN_TGZ_FILE}"
+
+  mkdir -p "${RELEASE_DIR}"
+  rm -f "${BIN_TGZ}*"
+
+  echo "Creating binary release tarball ${BIN_TGZ_FILE}"
+
+  ${KYUUBI_DIR}/build/dist --tgz --spark-provided -Pkyuubi-extension-spark-3-1
+
+  cp "${BIN_TGZ_FILE}" "${RELEASE_DIR}"
+
+  if [ "$SKIP_GPG" == "false" ] ; then
+    gpg --armor --detach-sig "${BIN_TGZ}"
+  fi
+  $SHASUM "${BIN_TGZ}" > "${BIN_TGZ}.sha512"
+}
+
+if [[ "$1" == "source" ]]; then
+  package_source
+  exit 0
+fi
+
+if [[ "$1" == "binary" ]]; then
+  package_binary
+  exit 0
+fi
+
+exit_with_usage
diff --git a/build/util.sh b/build/util.sh
new file mode 100755
index 0000000..7d8ca86
--- /dev/null
+++ b/build/util.sh
@@ -0,0 +1,38 @@
+#!/usr/bin/env bash
+
+#
+# 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.
+#
+
+realpath () {
+(
+  TARGET_FILE="$1"
+
+  cd "$(dirname "$TARGET_FILE")"
+  TARGET_FILE="$(basename "$TARGET_FILE")"
+
+  COUNT=0
+  while [ -L "$TARGET_FILE" -a $COUNT -lt 100 ]
+  do
+      TARGET_FILE="$(readlink "$TARGET_FILE")"
+      cd $(dirname "$TARGET_FILE")
+      TARGET_FILE="$(basename $TARGET_FILE)"
+      COUNT=$(($COUNT + 1))
+  done
+
+  echo "$(pwd -P)/"$TARGET_FILE""
+)
+}
diff --git a/docs/develop_tools/distribution.md b/docs/develop_tools/distribution.md
index 7a177a7..2661337 100644
--- a/docs/develop_tools/distribution.md
+++ b/docs/develop_tools/distribution.md
@@ -29,7 +29,7 @@ For instance,
 ./build/dist --name custom-name --tgz
 ```
 
-This results a Kyuubi distribution named `kyuubi-{version}-bin-custom-name.tar.gz` for you.
+This results a Kyuubi distribution named `kyuubi-{version}-bin-custom-name.tgz` for you.
 
 If you are planing to deploy Kyuubi where `spark` is provided, in other word, it's not required to bundle spark binary, use 
 
@@ -37,4 +37,4 @@ If you are planing to deploy Kyuubi where `spark` is provided, in other word, it
 ./build/dist --tgz --spark-provided
 ```
 
-Then you will get a Kyuubi distribution without spark binary named `kyuubi-{version}-bin-without-spark.tar.gz`.
+Then you will get a Kyuubi distribution without spark binary named `kyuubi-{version}-bin.tgz`.
diff --git a/docs/quick_start/quick_start.md b/docs/quick_start/quick_start.md
index a7e3b3e..0414f07 100644
--- a/docs/quick_start/quick_start.md
+++ b/docs/quick_start/quick_start.md
@@ -33,7 +33,7 @@ Additionally, if you want to work with other Spark compatible systems or plugins
 To install Kyuubi, you need to unpack the tarball. For example,
 
 ```bash
-tar zxf kyuubi-1.0.2-bin-spark-3.0.1.tar.gz
+tar zxf kyuubi-1.0.2-bin-spark-3.0.1.tgz
 ```
 
 This will result in the creation of a subdirectory named `kyuubi-1.0.2-bin-spark-3.0.1` shown below, where the `1.0.2` is the Kyuubi version, and `3.0.1` is the pre-built Spark version.
diff --git a/docs/quick_start/quick_start_with_dbeaver.md b/docs/quick_start/quick_start_with_dbeaver.md
index a0a9b23..5e3236b 100644
--- a/docs/quick_start/quick_start_with_dbeaver.md
+++ b/docs/quick_start/quick_start_with_dbeaver.md
@@ -36,10 +36,10 @@ Welcome to
                 \/__/
 ```
 
-For debugging purpose, you can `tail -f` or `tailf` to track the server log like:
+For debugging purpose, you can `tail -f` to track the server log like:
 
 ```logtalk
-$ tail -f /Users/kentyao/Downloads/kyuubi/kyuubi-1.0.2-bin-spark-3.0.1/logs/kyuubi-kentyao-org.apache.kyuubi.server.KyuubiServer-hulk.local.out
+$ tail -f /Users/kentyao/Downloads/kyuubi/kyuubi-1.3.0-incubating-bin/logs/kyuubi-kentyao-org.apache.kyuubi.server.KyuubiServer-hulk.local.out
 2021-01-16 03:27:35.449 INFO server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:65320
 2021-01-16 03:27:35.453 INFO server.ZooKeeperServer: Client attempting to establish new session at /127.0.0.1:65320
 2021-01-16 03:27:35.455 INFO persistence.FileTxnLog: Creating new log file: log.1
diff --git a/licenses-binary/LICENSE-CC0.txt b/licenses-binary/LICENSE-CC0.txt
new file mode 100644
index 0000000..0e259d4
--- /dev/null
+++ b/licenses-binary/LICENSE-CC0.txt
@@ -0,0 +1,121 @@
+Creative Commons Legal Code
+
+CC0 1.0 Universal
+
+    CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+    LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
+    ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
+    INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
+    REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
+    PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
+    THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
+    HEREUNDER.
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer
+exclusive Copyright and Related Rights (defined below) upon the creator
+and subsequent owner(s) (each and all, an "owner") of an original work of
+authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for
+the purpose of contributing to a commons of creative, cultural and
+scientific works ("Commons") that the public can reliably and without fear
+of later claims of infringement build upon, modify, incorporate in other
+works, reuse and redistribute as freely as possible in any form whatsoever
+and for any purposes, including without limitation commercial purposes.
+These owners may contribute to the Commons to promote the ideal of a free
+culture and the further production of creative, cultural and scientific
+works, or to gain reputation or greater distribution for their Work in
+part through the use and efforts of others.
+
+For these and/or other purposes and motivations, and without any
+expectation of additional consideration or compensation, the person
+associating CC0 with a Work (the "Affirmer"), to the extent that he or she
+is an owner of Copyright and Related Rights in the Work, voluntarily
+elects to apply CC0 to the Work and publicly distribute the Work under its
+terms, with knowledge of his or her Copyright and Related Rights in the
+Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be
+protected by copyright and related or neighboring rights ("Copyright and
+Related Rights"). Copyright and Related Rights include, but are not
+limited to, the following:
+
+  i. the right to reproduce, adapt, distribute, perform, display,
+     communicate, and translate a Work;
+ ii. moral rights retained by the original author(s) and/or performer(s);
+iii. publicity and privacy rights pertaining to a person's image or
+     likeness depicted in a Work;
+ iv. rights protecting against unfair competition in regards to a Work,
+     subject to the limitations in paragraph 4(a), below;
+  v. rights protecting the extraction, dissemination, use and reuse of data
+     in a Work;
+ vi. database rights (such as those arising under Directive 96/9/EC of the
+     European Parliament and of the Council of 11 March 1996 on the legal
+     protection of databases, and under any national implementation
+     thereof, including any amended or successor version of such
+     directive); and
+vii. other similar, equivalent or corresponding rights throughout the
+     world based on applicable law or treaty, and any national
+     implementations thereof.
+
+2. Waiver. To the greatest extent permitted by, but not in contravention
+of, applicable law, Affirmer hereby overtly, fully, permanently,
+irrevocably and unconditionally waives, abandons, and surrenders all of
+Affirmer's Copyright and Related Rights and associated claims and causes
+of action, whether now known or unknown (including existing as well as
+future claims and causes of action), in the Work (i) in all territories
+worldwide, (ii) for the maximum duration provided by applicable law or
+treaty (including future time extensions), (iii) in any current or future
+medium and for any number of copies, and (iv) for any purpose whatsoever,
+including without limitation commercial, advertising or promotional
+purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
+member of the public at large and to the detriment of Affirmer's heirs and
+successors, fully intending that such Waiver shall not be subject to
+revocation, rescission, cancellation, termination, or any other legal or
+equitable action to disrupt the quiet enjoyment of the Work by the public
+as contemplated by Affirmer's express Statement of Purpose.
+
+3. Public License Fallback. Should any part of the Waiver for any reason
+be judged legally invalid or ineffective under applicable law, then the
+Waiver shall be preserved to the maximum extent permitted taking into
+account Affirmer's express Statement of Purpose. In addition, to the
+extent the Waiver is so judged Affirmer hereby grants to each affected
+person a royalty-free, non transferable, non sublicensable, non exclusive,
+irrevocable and unconditional license to exercise Affirmer's Copyright and
+Related Rights in the Work (i) in all territories worldwide, (ii) for the
+maximum duration provided by applicable law or treaty (including future
+time extensions), (iii) in any current or future medium and for any number
+of copies, and (iv) for any purpose whatsoever, including without
+limitation commercial, advertising or promotional purposes (the
+"License"). The License shall be deemed effective as of the date CC0 was
+applied by Affirmer to the Work. Should any part of the License for any
+reason be judged legally invalid or ineffective under applicable law, such
+partial invalidity or ineffectiveness shall not invalidate the remainder
+of the License, and in such case Affirmer hereby affirms that he or she
+will not (i) exercise any of his or her remaining Copyright and Related
+Rights in the Work or (ii) assert any associated claims and causes of
+action with respect to the Work, in either case contrary to Affirmer's
+express Statement of Purpose.
+
+4. Limitations and Disclaimers.
+
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
+    surrendered, licensed or otherwise affected by this document.
+ b. Affirmer offers the Work as-is and makes no representations or
+    warranties of any kind concerning the Work, express, implied,
+    statutory or otherwise, including without limitation warranties of
+    title, merchantability, fitness for a particular purpose, non
+    infringement, or the absence of latent or other defects, accuracy, or
+    the present or absence of errors, whether or not discoverable, all to
+    the greatest extent permissible under applicable law.
+ c. Affirmer disclaims responsibility for clearing rights of other persons
+    that may apply to the Work or any use thereof, including without
+    limitation any person's Copyright and Related Rights in the Work.
+    Further, Affirmer disclaims responsibility for obtaining any necessary
+    consents, permissions or other rights required for any use of the
+    Work.
+ d. Affirmer understands and acknowledges that Creative Commons is not a
+    party to this document and has no duty or obligation with respect to
+    this CC0 or use of the Work.
diff --git a/licenses-binary/LICENSE-scopt.txt b/licenses-binary/LICENSE-scopt.txt
new file mode 100644
index 0000000..4f13e39
--- /dev/null
+++ b/licenses-binary/LICENSE-scopt.txt
@@ -0,0 +1,9 @@
+This project is licensed under the MIT license.
+
+Copyright (c) scopt contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/pom.xml b/pom.xml
index bd246a4..ad93393 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1488,8 +1488,7 @@
                             <exclude>build/scala-*/**</exclude>
                             <exclude>**/**/operation_logs/**/**</exclude>
                             <exclude>**/*.output.schema</exclude>
-                            <exclude>**/kyuubi-*-bin-without-spark/**</exclude>
-                            <exclude>**/kyuubi-*-bin-spark-*/**</exclude>
+                            <exclude>**/kyuubi-*-bin*/**</exclude>
                         </excludes>
                     </configuration>
                 </plugin>