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

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


The following commit(s) were added to refs/heads/master by this push:
     new 71e7dc7a Update .licenserc.yaml (#151)
71e7dc7a is described below

commit 71e7dc7a825cb27d367f08c64be9139ab3240296
Author: cjcchen <[email protected]>
AuthorDate: Fri Jul 12 14:51:46 2024 +0800

    Update .licenserc.yaml (#151)
    
    * Update .licenserc.yaml
    
    * add license header
    
    * add config
    
    * add config
    
    * add config
    
    * add config
    
    * add config
    
    * add config
---
 .licenserc.yaml                                    | 32 ++++++++++------------
 dev/.rat-excludes                                  |  1 -
 .../contract/manager/contract_manager_test.cpp     |  2 +-
 third_party/asio.BUILD                             | 23 ++++++++++++++--
 third_party/civetweb.BUILD                         | 22 +++++++++++++++
 third_party/crow.BUILD                             | 23 ++++++++++++++--
 third_party/date.BUILD                             | 25 +++++++++++++++--
 third_party/eEVM.BUILD                             | 25 +++++++++++++++--
 third_party/json.BUILD                             | 23 ++++++++++++++--
 third_party/leveldb.BUILD                          | 25 ++++++++++++++++-
 third_party/prometheus.BUILD                       | 22 +++++++++++++++
 third_party/rapidjson.BUILD                        | 22 +++++++++++++++
 third_party/snappy.BUILD                           | 25 +++++++++++++++--
 third_party/z.BUILD                                | 26 +++++++++++++++---
 third_party/zlib.BUILD                             | 25 +++++++++++++++--
 15 files changed, 279 insertions(+), 42 deletions(-)

diff --git a/.licenserc.yaml b/.licenserc.yaml
index 1e93356e..76a55458 100644
--- a/.licenserc.yaml
+++ b/.licenserc.yaml
@@ -4,30 +4,26 @@ header:
     copyright-owner: Apache Software Foundation
 
   paths-ignore:
-    - 'dist'
-    - 'licenses'
-    - '**/*.md'
-    - 'LICENSE'
-    - 'DISCLAIMER-WIP'
-    - 'NOTICE'
     - '.*'
     - '.**/**'
+    - 'repositories.bzl'
+    - 'CNAME'
+    - 'WORKSPACE'
     - '**/*.conf'
     - '**/*.config'
     - '**/*.json'
     - '**/*.sol'
-    - '**/*.yaml'
-    - '**/*.css'
-    - '**/*.yml'
-    - 'repositories.bzl'
-    - 'documents/**'
-    - 'CNAME'
-    - 'DISCLAIMER'
-    - 'Docker/**'
-    - 'WORKSPACE'
-    - 'skywalking-eyes/**'
-    - 'third_party/**.BUILD'
-    - 'third_party/loc_script/src/index.js'
+    - '**/*.pri'
+    - '**/*.pub'
+    - 'Doxyfile'
+    - 'header'
+    - 'dev/.rat-excludes'
+    - '**/*.md'
+    - 'DISCLAIMER-WIP'
+    - 'NOTICE'
+    - 'LICENSE'
+    - 'documents/doxygen/.gitignore'
+
 
 
   comment: on-failure
diff --git a/dev/.rat-excludes b/dev/.rat-excludes
index aa54fb8a..7889a072 100644
--- a/dev/.rat-excludes
+++ b/dev/.rat-excludes
@@ -14,7 +14,6 @@ build
 .*\.config
 .*\.pub
 .*\.pri
-.*\.BUILD
 Doxyfile
 header
 .*\.sol
diff --git a/executor/contract/manager/contract_manager_test.cpp 
b/executor/contract/manager/contract_manager_test.cpp
index 23746b49..32540bd4 100644
--- a/executor/contract/manager/contract_manager_test.cpp
+++ b/executor/contract/manager/contract_manager_test.cpp
@@ -34,7 +34,7 @@ using ::testing::Test;
 
 const std::string test_dir = std::string(getenv("TEST_SRCDIR")) + "/" +
                              std::string(getenv("TEST_WORKSPACE")) +
-                             "/service/contract/executor/manager/";
+                             "/executor/contract/manager/";
 
 Address get_random_address() { return AddressManager().CreateRandomAddress(); }
 
diff --git a/third_party/asio.BUILD b/third_party/asio.BUILD
index 9fe1dd3e..6f8eb603 100644
--- a/third_party/asio.BUILD
+++ b/third_party/asio.BUILD
@@ -1,7 +1,27 @@
-licenses(["notice"])
+#
+# 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.
+#
 
+licenses(["notice"])
 exports_files(["LICENSE"])
 
+package(default_visibility = ["//visibility:public"])
+
 cc_library(
     name = "asio",
     srcs = glob([
@@ -15,5 +35,4 @@ cc_library(
         "asio/**/*.ipp",
     ]),
     includes = ["asio/include"],
-    visibility = ["//visibility:public"],
 )
diff --git a/third_party/civetweb.BUILD b/third_party/civetweb.BUILD
index a91b3c44..02a6de22 100644
--- a/third_party/civetweb.BUILD
+++ b/third_party/civetweb.BUILD
@@ -1,3 +1,25 @@
+#
+# 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.
+#
+
+licenses(["notice"])
+exports_files(["LICENSE"])
+
 package(default_visibility = ["//visibility:public"])
 
 cc_library(
diff --git a/third_party/crow.BUILD b/third_party/crow.BUILD
index 20cfcfcd..3b0765a5 100644
--- a/third_party/crow.BUILD
+++ b/third_party/crow.BUILD
@@ -1,7 +1,27 @@
-licenses(["notice"])
+#
+# 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.
+#
 
+licenses(["notice"])
 exports_files(["LICENSE"])
 
+package(default_visibility = ["//visibility:public"])
+
 cc_library(
     name = "crow",
     srcs = glob([
@@ -14,6 +34,5 @@ cc_library(
     ]),
     includes = ["include"],
     linkopts = ["-lpthread"],
-    visibility = ["//visibility:public"],
     deps = ["//external:asio",],
 ) 
diff --git a/third_party/date.BUILD b/third_party/date.BUILD
index e7335ff4..b5bff376 100644
--- a/third_party/date.BUILD
+++ b/third_party/date.BUILD
@@ -1,11 +1,30 @@
-licenses(["notice"])
+#
+# 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.
+#
 
+licenses(["notice"])
 exports_files(["LICENSE"])
 
+package(default_visibility = ["//visibility:public"])
+
 cc_library(
     name = "date",
     srcs = glob(["src/**/*.cc"]),
     hdrs = glob(["include/**/*.h"]),
     includes = ["include"],
-    visibility = ["//visibility:public"],
-)
\ No newline at end of file
+)
diff --git a/third_party/eEVM.BUILD b/third_party/eEVM.BUILD
index 5411dfee..684a495f 100644
--- a/third_party/eEVM.BUILD
+++ b/third_party/eEVM.BUILD
@@ -1,6 +1,26 @@
-package(default_visibility = ["//visibility:public"])
+#
+# 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.
+#
+
+licenses(["notice"])
+exports_files(["LICENSE"])
 
-load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
+package(default_visibility = ["//visibility:public"])
 
 cc_library(
     name = "eEVM",
@@ -31,6 +51,5 @@ cc_library(
         "3rdparty/intx/include",
         "3rdparty/keccak",
     ],
-    #linkstatic = 1,
     visibility = ["//visibility:public"],
 )
diff --git a/third_party/json.BUILD b/third_party/json.BUILD
index 748297d4..20cee567 100644
--- a/third_party/json.BUILD
+++ b/third_party/json.BUILD
@@ -1,7 +1,26 @@
-package(default_visibility = ["//visibility:public"])
+#
+# 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.
+#
 
-load("@rules_cc//cc:defs.bzl", "cc_library")
+licenses(["notice"])
+exports_files(["LICENSE"])
 
+package(default_visibility = ["//visibility:public"])
 
 cc_library(
     name = "json",
diff --git a/third_party/leveldb.BUILD b/third_party/leveldb.BUILD
index b5cb8070..cb7be9fb 100644
--- a/third_party/leveldb.BUILD
+++ b/third_party/leveldb.BUILD
@@ -1,3 +1,27 @@
+#
+# 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.
+#
+
+licenses(["notice"])
+exports_files(["LICENSE"])
+
+package(default_visibility = ["//visibility:public"])
+
 cc_library(
     name = "leveldb",
     srcs = glob(
@@ -27,5 +51,4 @@ cc_library(
         ".",
         "include",
     ],
-    visibility = ["//visibility:public"],
 )
diff --git a/third_party/prometheus.BUILD b/third_party/prometheus.BUILD
index 866f397f..7827d706 100644
--- a/third_party/prometheus.BUILD
+++ b/third_party/prometheus.BUILD
@@ -1,4 +1,26 @@
+#
+# 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.
+#
+
 licenses(["notice"])
+exports_files(["LICENSE"])
+
+package(default_visibility = ["//visibility:public"])
 
 cc_library(
     name = "prometheus",
diff --git a/third_party/rapidjson.BUILD b/third_party/rapidjson.BUILD
index 63f5aac6..d0430a5c 100644
--- a/third_party/rapidjson.BUILD
+++ b/third_party/rapidjson.BUILD
@@ -1,3 +1,25 @@
+#
+# 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.
+#
+
+licenses(["notice"])
+exports_files(["LICENSE"])
+
 package(default_visibility = ["//visibility:public"])
 
 cc_library(
diff --git a/third_party/snappy.BUILD b/third_party/snappy.BUILD
index 56d1c394..54d0a187 100644
--- a/third_party/snappy.BUILD
+++ b/third_party/snappy.BUILD
@@ -1,6 +1,27 @@
-package(default_visibility = ["//visibility:public"])
+#
+# 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.
+#
+
 
-licenses(["notice"])  # BSD 3-clause
+licenses(["notice"])
+exports_files(["LICENSE"])
+
+package(default_visibility = ["//visibility:public"])
 
 filegroup(
     name = "license",
diff --git a/third_party/z.BUILD b/third_party/z.BUILD
index 34cd232c..115995a4 100644
--- a/third_party/z.BUILD
+++ b/third_party/z.BUILD
@@ -1,16 +1,34 @@
-# copied from: 
https://github.com/bazelbuild/bazel/blob/master/third_party/zlib/BUILD
+#
+# 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.
+#
 
-licenses(["notice"])  # BSD/MIT-like license (for zlib)
+licenses(["notice"])
+exports_files(["LICENSE"])
+
+package(default_visibility = ["//visibility:public"])
 
 cc_library(
     name = "z",
     srcs = glob(["*.c"]),
     hdrs = glob(["*.h"]),
-    # Use -Dverbose=-1 to turn off zlib's trace logging. 
(bazelbuild/bazel#3280)
     copts = [
         "-w",
         "-Dverbose=-1",
     ],
     includes = ["."],
-    visibility = ["//visibility:public"],
 )
diff --git a/third_party/zlib.BUILD b/third_party/zlib.BUILD
index 7a0b0216..c9406164 100644
--- a/third_party/zlib.BUILD
+++ b/third_party/zlib.BUILD
@@ -1,6 +1,26 @@
-licenses(["notice"])  # BSD/MIT-like license (for zlib)
+#
+# 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.
+#
 
-# Modified from https://github.com/tensorflow/tensorflow/blob/master/zlib.BUILD
+licenses(["notice"])
+exports_files(["LICENSE"])
+
+package(default_visibility = ["//visibility:public"])
 
 cc_library(
     name = "zlib",
@@ -37,5 +57,4 @@ cc_library(
     copts = [
         "-D_LARGEFILE64_SOURCE=1",
     ],
-    visibility = ["//visibility:public"],
 )

Reply via email to