This is an automated email from the ASF dual-hosted git repository. harishgokul01 pushed a commit to branch harish-branch in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git
commit 91cbdb7f0e40639cbf2338dcdaba905e4698e2a9 Author: harish876 <[email protected]> AuthorDate: Fri Sep 12 15:13:54 2025 -0700 Remove unused .rat-excludes and check-license files across multiple ecosystems, streamlining the project structure and eliminating redundant license checks. --- .../cache/resilient-node-cache/dev/.rat-excludes | 19 ----- .../cache/resilient-node-cache/dev/check-license | 86 ---------------------- .../cache/resilient-python-cache/dev/.rat-excludes | 19 ----- .../cache/resilient-python-cache/dev/check-license | 86 ---------------------- ecosystem/deployment/ansible/dev/.rat-excludes | 19 ----- ecosystem/deployment/ansible/dev/check-license | 86 ---------------------- ecosystem/deployment/orbit/dev/.rat-excludes | 22 ------ ecosystem/deployment/orbit/dev/check-license | 86 ---------------------- ecosystem/graphql/.bazelrc | 4 - ecosystem/monitoring/reslens/.licenserc.yaml | 26 ------- ecosystem/monitoring/reslens/.vscode/settings.json | 2 - ecosystem/sdk/resdb-orm/.bazelrc | 2 - ecosystem/sdk/resdb-orm/dev/.rat-excludes | 19 ----- ecosystem/sdk/resdb-orm/dev/check-license | 86 ---------------------- ecosystem/sdk/resvault-sdk/dev/.rat-excludes | 19 ----- ecosystem/sdk/resvault-sdk/dev/check-license | 86 ---------------------- ecosystem/sdk/rust-sdk/.asf.yaml | 42 ----------- .../sdk/rust-sdk/.github/workflows/license.yml | 37 ---------- ecosystem/sdk/rust-sdk/.github/workflows/rust.yml | 41 ----------- ecosystem/sdk/rust-sdk/.licenserc.yaml | 26 ------- ecosystem/sdk/rust-sdk/dev/.rat-excludes | 19 ----- ecosystem/sdk/rust-sdk/dev/check-license | 86 ---------------------- .../smart-contract/rescontract/dev/.rat-excludes | 19 ----- .../smart-contract/rescontract/dev/check-license | 86 ---------------------- .../resilient-contract-kit/dev/.rat-excludes | 19 ----- .../resilient-contract-kit/dev/check-license | 86 ---------------------- .../smart-contract-graphql/dev/.rat-excludes | 19 ----- .../smart-contract-graphql/dev/check-license | 86 ---------------------- .../tools/create-resilient-app/dev/.rat-excludes | 19 ----- .../tools/create-resilient-app/dev/check-license | 86 ---------------------- ecosystem/tools/resvault/dev/.rat-excludes | 19 ----- ecosystem/tools/resvault/dev/check-license | 86 ---------------------- 32 files changed, 1443 deletions(-) diff --git a/ecosystem/cache/resilient-node-cache/dev/.rat-excludes b/ecosystem/cache/resilient-node-cache/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/cache/resilient-node-cache/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/cache/resilient-node-cache/dev/check-license b/ecosystem/cache/resilient-node-cache/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/cache/resilient-node-cache/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/cache/resilient-python-cache/dev/.rat-excludes b/ecosystem/cache/resilient-python-cache/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/cache/resilient-python-cache/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/cache/resilient-python-cache/dev/check-license b/ecosystem/cache/resilient-python-cache/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/cache/resilient-python-cache/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/deployment/ansible/dev/.rat-excludes b/ecosystem/deployment/ansible/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/deployment/ansible/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/deployment/ansible/dev/check-license b/ecosystem/deployment/ansible/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/deployment/ansible/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/deployment/orbit/dev/.rat-excludes b/ecosystem/deployment/orbit/dev/.rat-excludes deleted file mode 100644 index 2d47a8d6..00000000 --- a/ecosystem/deployment/orbit/dev/.rat-excludes +++ /dev/null @@ -1,22 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol -.*\.gitignore -.*\.lock - diff --git a/ecosystem/deployment/orbit/dev/check-license b/ecosystem/deployment/orbit/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/deployment/orbit/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/graphql/.bazelrc b/ecosystem/graphql/.bazelrc deleted file mode 100644 index 0566a7c9..00000000 --- a/ecosystem/graphql/.bazelrc +++ /dev/null @@ -1,4 +0,0 @@ -build --cxxopt='-std=c++17' --copt=-O3 --jobs=40 -#build --action_env=PYTHON_BIN_PATH="/usr/bin/python3.10" -#build --action_env=PYTHON_LIB_PATH="/usr/include/python3.10" - diff --git a/ecosystem/monitoring/reslens/.licenserc.yaml b/ecosystem/monitoring/reslens/.licenserc.yaml deleted file mode 100644 index ae67f6f1..00000000 --- a/ecosystem/monitoring/reslens/.licenserc.yaml +++ /dev/null @@ -1,26 +0,0 @@ -header: - license: - spdx-id: Apache-2.0 - copyright-owner: Apache Software Foundation - - paths-ignore: - - '.*' - - '.**/**' - - 'CNAME' - - '**/*.conf' - - '**/*.config' - - '**/*.json' - - '**/*.sol' - - '**/*.pri' - - '**/*.pub' - - 'dev/.rat-excludes' - - 'DISCLAIMER' - - 'NOTICE' - - 'LICENSE' - - 'documents/doxygen/.gitignore' - - 'third_party/loc_script/src/index.js' - - - - comment: on-failure - diff --git a/ecosystem/monitoring/reslens/.vscode/settings.json b/ecosystem/monitoring/reslens/.vscode/settings.json deleted file mode 100644 index 7a73a41b..00000000 --- a/ecosystem/monitoring/reslens/.vscode/settings.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file diff --git a/ecosystem/sdk/resdb-orm/.bazelrc b/ecosystem/sdk/resdb-orm/.bazelrc deleted file mode 100644 index ac384383..00000000 --- a/ecosystem/sdk/resdb-orm/.bazelrc +++ /dev/null @@ -1,2 +0,0 @@ -build --cxxopt='-std=c++17' --copt=-O3 --jobs=40 - diff --git a/ecosystem/sdk/resdb-orm/dev/.rat-excludes b/ecosystem/sdk/resdb-orm/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/sdk/resdb-orm/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/sdk/resdb-orm/dev/check-license b/ecosystem/sdk/resdb-orm/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/sdk/resdb-orm/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/sdk/resvault-sdk/dev/.rat-excludes b/ecosystem/sdk/resvault-sdk/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/sdk/resvault-sdk/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/sdk/resvault-sdk/dev/check-license b/ecosystem/sdk/resvault-sdk/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/sdk/resvault-sdk/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/sdk/rust-sdk/.asf.yaml b/ecosystem/sdk/rust-sdk/.asf.yaml deleted file mode 100644 index 1d251083..00000000 --- a/ecosystem/sdk/rust-sdk/.asf.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# 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. -# - -github: - description: Global-Scale Sustainable Blockchain Fabric - homepage: https://resilientdb.incubator.apache.org/ - labels: - - crypto - - smart-contracts - - blockchain - - solidity - - distributed-database - - key-value-database - - distributed-ledger - - blockchain-platform - - utxo - enabled_merge_buttons: - squash: true - merge: false - rebase: false - protected_branches: - main: - required_status_checks: - strict: true - -notifications: - commits: [email protected] - issues: [email protected] - pullrequests: [email protected] diff --git a/ecosystem/sdk/rust-sdk/.github/workflows/license.yml b/ecosystem/sdk/rust-sdk/.github/workflows/license.yml deleted file mode 100644 index f3d4206d..00000000 --- a/ecosystem/sdk/rust-sdk/.github/workflows/license.yml +++ /dev/null @@ -1,37 +0,0 @@ -# -# 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: Check Apache License - -on: - push - -jobs: - ubuntu-build: - name: check license - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - repository: ${{github.repository}} - ref: ${{ env.BRANCH_NAME }} - - - name: Check License Header - uses: apache/skywalking-eyes/header@main \ No newline at end of file diff --git a/ecosystem/sdk/rust-sdk/.github/workflows/rust.yml b/ecosystem/sdk/rust-sdk/.github/workflows/rust.yml deleted file mode 100644 index 7144ef61..00000000 --- a/ecosystem/sdk/rust-sdk/.github/workflows/rust.yml +++ /dev/null @@ -1,41 +0,0 @@ -# -# 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: Rust - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - # - name: Run tests - # run: cargo test --verbose diff --git a/ecosystem/sdk/rust-sdk/.licenserc.yaml b/ecosystem/sdk/rust-sdk/.licenserc.yaml deleted file mode 100644 index ae67f6f1..00000000 --- a/ecosystem/sdk/rust-sdk/.licenserc.yaml +++ /dev/null @@ -1,26 +0,0 @@ -header: - license: - spdx-id: Apache-2.0 - copyright-owner: Apache Software Foundation - - paths-ignore: - - '.*' - - '.**/**' - - 'CNAME' - - '**/*.conf' - - '**/*.config' - - '**/*.json' - - '**/*.sol' - - '**/*.pri' - - '**/*.pub' - - 'dev/.rat-excludes' - - 'DISCLAIMER' - - 'NOTICE' - - 'LICENSE' - - 'documents/doxygen/.gitignore' - - 'third_party/loc_script/src/index.js' - - - - comment: on-failure - diff --git a/ecosystem/sdk/rust-sdk/dev/.rat-excludes b/ecosystem/sdk/rust-sdk/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/sdk/rust-sdk/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/sdk/rust-sdk/dev/check-license b/ecosystem/sdk/rust-sdk/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/sdk/rust-sdk/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/smart-contract/rescontract/dev/.rat-excludes b/ecosystem/smart-contract/rescontract/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/smart-contract/rescontract/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/smart-contract/rescontract/dev/check-license b/ecosystem/smart-contract/rescontract/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/smart-contract/rescontract/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/smart-contract/resilient-contract-kit/dev/.rat-excludes b/ecosystem/smart-contract/resilient-contract-kit/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/smart-contract/resilient-contract-kit/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/smart-contract/resilient-contract-kit/dev/check-license b/ecosystem/smart-contract/resilient-contract-kit/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/smart-contract/resilient-contract-kit/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/smart-contract/smart-contract-graphql/dev/.rat-excludes b/ecosystem/smart-contract/smart-contract-graphql/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/smart-contract/smart-contract-graphql/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/smart-contract/smart-contract-graphql/dev/check-license b/ecosystem/smart-contract/smart-contract-graphql/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/smart-contract/smart-contract-graphql/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/tools/create-resilient-app/dev/.rat-excludes b/ecosystem/tools/create-resilient-app/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/tools/create-resilient-app/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/tools/create-resilient-app/dev/check-license b/ecosystem/tools/create-resilient-app/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/tools/create-resilient-app/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file diff --git a/ecosystem/tools/resvault/dev/.rat-excludes b/ecosystem/tools/resvault/dev/.rat-excludes deleted file mode 100644 index 35c8b276..00000000 --- a/ecosystem/tools/resvault/dev/.rat-excludes +++ /dev/null @@ -1,19 +0,0 @@ -.bazelrc -.bazelversion -.clang-format -.licenserc.yaml -repositories.bzl -.gitignore -.git -.rat-excludes -DISCLAIMER-WIP -CNAME -WORKSPACE -build -.*\.conf -.*\.config -.*\.pub -.*\.pri -Doxyfile -header -.*\.sol \ No newline at end of file diff --git a/ecosystem/tools/resvault/dev/check-license b/ecosystem/tools/resvault/dev/check-license deleted file mode 100644 index 7e33bb42..00000000 --- a/ecosystem/tools/resvault/dev/check-license +++ /dev/null @@ -1,86 +0,0 @@ -#!/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. -# - - -acquire_rat_jar () { - - URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar" - - JAR="$rat_jar" - - # Download rat launch jar if it hasn't been downloaded yet - if [ ! -f "$JAR" ]; then - # Download - printf "Attempting to fetch rat\n" - JAR_DL="${JAR}.part" - if [ $(command -v curl) ]; then - curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR" - elif [ $(command -v wget) ]; then - wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR" - else - printf "You do not have curl or wget installed, please install rat manually.\n" - exit -1 - fi - fi - - unzip -tq "$JAR" &> /dev/null - if [ $? -ne 0 ]; then - # We failed to download - rm "$JAR" - printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n" - exit -1 - fi -} - -# Go to the Spark project root directory -FWDIR="$(cd "`dirname "$0"`"/..; pwd)" -cd "$FWDIR" - -if test -x "$JAVA_HOME/bin/java"; then - declare java_cmd="$JAVA_HOME/bin/java" -else - declare java_cmd=java -fi - -export RAT_VERSION=0.16.1 -export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar -mkdir -p "$FWDIR"/lib - -[[ -f "$rat_jar" ]] || acquire_rat_jar || { - echo "Download failed. Obtain the rat jar manually and place it at $rat_jar" - exit 1 -} - -mkdir -p build -$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt - -if [ $? -ne 0 ]; then - echo "RAT exited abnormally" - exit 1 -fi - -ERRORS="$(cat build/rat-results.txt | grep -e "??")" - -if test ! -z "$ERRORS"; then - echo "Could not find Apache license headers in the following files:" - echo "$ERRORS" - exit 1 -else - echo -e "RAT checks passed." -fi \ No newline at end of file
