This is an automated email from the ASF dual-hosted git repository.
weibin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git
The following commit(s) were added to refs/heads/main by this push:
new 326bed5 [Improve][DevInfra] Use korandoru/hawkeye to check license
header (#452)
326bed5 is described below
commit 326bed50b617ecd84f6b8079c0b8574c7a53c074
Author: Weibin Zeng <[email protected]>
AuthorDate: Mon Apr 15 17:55:59 2024 +0800
[Improve][DevInfra] Use korandoru/hawkeye to check license header (#452)
* Use korandoru/hawkeye to check license header
---------
Signed-off-by: acezen <[email protected]>
---
.asf.yaml | 28 ++++++++++-----------
.github/workflows/license.yml | 6 +----
.licenserc.yaml | 48 -----------------------------------
java/pom.xml | 34 +++++++++++++------------
licenserc.toml | 58 +++++++++++++++++++++++++++++++++++++++++++
spark/datasources-32/pom.xml | 34 +++++++++++++------------
spark/datasources-33/pom.xml | 34 +++++++++++++------------
spark/graphar/pom.xml | 34 +++++++++++++------------
spark/pom.xml | 34 +++++++++++++------------
9 files changed, 163 insertions(+), 147 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 523a231..2d4f24f 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -1,19 +1,19 @@
+# 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
#
-# 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.
+# 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.
# See:
https://cwiki.apache.org/confluence/display/INFRA/git+-+.asf.yaml+features
diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml
index deb2719..25ae537 100644
--- a/.github/workflows/license.yml
+++ b/.github/workflows/license.yml
@@ -33,7 +33,6 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
-
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -42,7 +41,4 @@ jobs:
fetch-depth: 0
- name: Check License Header
- uses: apache/skywalking-eyes/header@main
- with:
- config: .licenserc.yaml
- mode: check
+ uses: korandoru/hawkeye@v4
diff --git a/.licenserc.yaml b/.licenserc.yaml
deleted file mode 100644
index 24509e4..0000000
--- a/.licenserc.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-header:
- license:
- spdx-id: Apache-2.0
- copyright-owner: Apache Software Foundation
-
- paths-ignore:
- - 'dist'
- - 'licenses'
- - 'LICENSE'
- - 'NOTICE'
- - 'DISCLAIMER'
- - 'testing'
- - 'spark/graphar/src/test/resources'
- - 'java/src/test/resources'
- - '.licenserc.yaml'
- - '.gitignore'
- - '.gitleaks.toml'
- - '.gitmodules'
- - 'pre-commit-config.yaml'
- - 'docs'
- - '**/.gitignore'
- - '**/.scalafix.conf'
- - '**/.scalafmt.conf'
- - 'cpp/apidoc'
- - 'cpp/thirdparty'
- - 'cpp/include/gar/external/result.hpp'
- - 'cpp/misc/cpplint.py'
- - 'spark/datasources-32/src/main/scala/org/apache/graphar/datasources'
- - 'spark/datasources-33/src/main/scala/org/apache/graphar/datasources'
- - 'java/src/main/java/org/apache/graphar/stdcxx/StdString.java'
- - 'java/src/main/java/org/apache/graphar/stdcxx/StdVector.java'
- - 'java/src/main/java/org/apache/graphar/stdcxx/StdSharedPtr.java'
- - 'java/src/main/java/org/apache/graphar/stdcxx/StdMap.java'
- - 'java/src/main/java/org/apache/graphar/stdcxx/StdUnorderedMap.java'
- - 'java/build.xml'
- - '*.md'
- - '**/*.md'
- - '*.rst'
- - '**/*.json'
- - 'pyspark/poetry.lock' # This file is generated automatically by
Poetry-tool; there is no way to add license header
-
- comment: on-failure
-
-# If you don't want to check dependencies' license compatibility, remove the
following part
-dependency:
- files:
- - spark/pom.xml # If this is a maven project.
- - java/pom.xml # If this is a maven project.
diff --git a/java/pom.xml b/java/pom.xml
index 58d7e80..a58558b 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ 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.
+
+ 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.
+
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
diff --git a/licenserc.toml b/licenserc.toml
new file mode 100644
index 0000000..c93235b
--- /dev/null
+++ b/licenserc.toml
@@ -0,0 +1,58 @@
+# 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.
+
+headerPath = "Apache-2.0-ASF.txt"
+
+excludes = [
+ # Website generated files
+ "build",
+ ".docusaurus",
+
+ # Documents
+ "**/*.md",
+ "**/*.mdx",
+
+ # Meta files
+ "NOTICE",
+ "DISCLAIMER",
+ "dist",
+ "licenses",
+ "testing",
+ "spark/graphar/src/test/resources",
+ "java/src/test/resources",
+ ".licenserc.yaml",
+ ".gitleaks.toml",
+ ".gitmodules",
+ "pre-commit-config.yaml",
+ "**/.gitignore",
+ "**/.scalafix.conf",
+ "**/.scalafmt.conf",
+ "cpp/apidoc",
+ "cpp/thirdparty",
+ "cpp/include/gar/external/result.hpp",
+ "cpp/misc/cpplint.py",
+ "spark/datasources-32/src/main/scala/org/apache/graphar/datasources",
+ "spark/datasources-33/src/main/scala/org/apache/graphar/datasources",
+ "java/src/main/java/org/apache/graphar/stdcxx/StdString.java",
+ "java/src/main/java/org/apache/graphar/stdcxx/StdVector.java",
+ "java/src/main/java/org/apache/graphar/stdcxx/StdSharedPtr.java",
+ "java/src/main/java/org/apache/graphar/stdcxx/StdMap.java",
+ "java/src/main/java/org/apache/graphar/stdcxx/StdUnorderedMap.java",
+ "java/build.xml",
+ "**/*.json",
+ "pyspark/poetry.lock",
+]
diff --git a/spark/datasources-32/pom.xml b/spark/datasources-32/pom.xml
index 8c462c4..346e716 100644
--- a/spark/datasources-32/pom.xml
+++ b/spark/datasources-32/pom.xml
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ 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.
+
+ 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.
+
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
diff --git a/spark/datasources-33/pom.xml b/spark/datasources-33/pom.xml
index 8c462c4..346e716 100644
--- a/spark/datasources-33/pom.xml
+++ b/spark/datasources-33/pom.xml
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ 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.
+
+ 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.
+
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
diff --git a/spark/graphar/pom.xml b/spark/graphar/pom.xml
index 48e9673..cf204b3 100644
--- a/spark/graphar/pom.xml
+++ b/spark/graphar/pom.xml
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ 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.
+
+ 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.
+
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
diff --git a/spark/pom.xml b/spark/pom.xml
index 4f2f807..76cd5f8 100644
--- a/spark/pom.xml
+++ b/spark/pom.xml
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ 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.
+
+ 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.
+
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]