This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new add6315e8 chore: apache project provides code under ALv2 (#6598)
add6315e8 is described below
commit add6315e8c04a38361f08fd187fa39838bebee5a
Author: tison <[email protected]>
AuthorDate: Sat Sep 27 11:15:32 2025 +0800
chore: apache project provides code under ALv2 (#6598)
---
examples/cpp/CMakeLists.txt | 17 +++++++++++++++++
examples/cpp/basic.cpp | 19 +++++++++++++++++++
integrations/cloud_filter/examples/readonly.rs | 17 +++++++++++++++++
integrations/object_store/examples/basic.rs | 17 +++++++++++++++++
integrations/object_store/examples/datafusion.rs | 17 +++++++++++++++++
integrations/parquet/examples/async_reader.rs | 17 +++++++++++++++++
integrations/parquet/examples/async_writer.rs | 17 +++++++++++++++++
integrations/unftp-sbe/examples/main.rs | 17 +++++++++++++++++
licenserc.toml | 3 ---
9 files changed, 138 insertions(+), 3 deletions(-)
diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt
index 4c06bdba0..6e6e9a8dd 100644
--- a/examples/cpp/CMakeLists.txt
+++ b/examples/cpp/CMakeLists.txt
@@ -1,3 +1,20 @@
+# 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.
+
cmake_minimum_required(VERSION 3.10)
project(opendal-cpp-examples)
diff --git a/examples/cpp/basic.cpp b/examples/cpp/basic.cpp
index c1f9a3567..f06f5d1ac 100644
--- a/examples/cpp/basic.cpp
+++ b/examples/cpp/basic.cpp
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
#include "opendal.hpp"
#include <iostream>
diff --git a/integrations/cloud_filter/examples/readonly.rs
b/integrations/cloud_filter/examples/readonly.rs
index 9e5956c3c..b13c0fc5c 100644
--- a/integrations/cloud_filter/examples/readonly.rs
+++ b/integrations/cloud_filter/examples/readonly.rs
@@ -1,3 +1,20 @@
+// 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.
+
use std::env;
use cloud_filter::root::{
diff --git a/integrations/object_store/examples/basic.rs
b/integrations/object_store/examples/basic.rs
index 1afbc9c74..76af17081 100644
--- a/integrations/object_store/examples/basic.rs
+++ b/integrations/object_store/examples/basic.rs
@@ -1,3 +1,20 @@
+// 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.
+
use bytes::Bytes;
#[cfg(feature = "services-s3")]
use object_store::aws::AmazonS3Builder;
diff --git a/integrations/object_store/examples/datafusion.rs
b/integrations/object_store/examples/datafusion.rs
index e12a3f647..c6b71bc48 100644
--- a/integrations/object_store/examples/datafusion.rs
+++ b/integrations/object_store/examples/datafusion.rs
@@ -1,3 +1,20 @@
+// 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.
+
use datafusion::error::DataFusionError;
use datafusion::error::Result;
use datafusion::prelude::*;
diff --git a/integrations/parquet/examples/async_reader.rs
b/integrations/parquet/examples/async_reader.rs
index 9fe7ebe74..618fc46de 100644
--- a/integrations/parquet/examples/async_reader.rs
+++ b/integrations/parquet/examples/async_reader.rs
@@ -1,3 +1,20 @@
+// 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.
+
use std::sync::Arc;
use arrow::array::{ArrayRef, Int64Array, RecordBatch};
diff --git a/integrations/parquet/examples/async_writer.rs
b/integrations/parquet/examples/async_writer.rs
index 9f16f69ea..b48a490c1 100644
--- a/integrations/parquet/examples/async_writer.rs
+++ b/integrations/parquet/examples/async_writer.rs
@@ -1,3 +1,20 @@
+// 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.
+
use std::sync::Arc;
use arrow::array::{ArrayRef, Int64Array, RecordBatch};
diff --git a/integrations/unftp-sbe/examples/main.rs
b/integrations/unftp-sbe/examples/main.rs
index 541b96503..e0cef2230 100644
--- a/integrations/unftp-sbe/examples/main.rs
+++ b/integrations/unftp-sbe/examples/main.rs
@@ -1,3 +1,20 @@
+// 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.
+
use std::error::Error;
use opendal::Operator;
diff --git a/licenserc.toml b/licenserc.toml
index b55d93f75..816bc6cb0 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -18,9 +18,6 @@
headerPath = "Apache-2.0-ASF.txt"
excludes = [
- # Examples are served as public domain content.
- "examples",
-
# Well known generated files
"**/Cargo.lock",
"**/pnpm-lock.yaml",