diff --git a/.github/workflows/licence-checker.yml b/.github/workflows/licence-checker.yml index 7a8e5dcca1..5e954ce30c 100644 --- a/.github/workflows/licence-checker.yml +++ b/.github/workflows/licence-checker.yml @@ -24,7 +24,7 @@ jobs: token: ${{ github.token }} config: .licenserc.yaml - - name: License check(RAT) + - name: License check (RAT) run: | mvn apache-rat:check -ntp find ./ -name rat.txt -print0 | xargs -0 -I file cat file > merged-rat.txt diff --git a/.licenserc.yaml b/.licenserc.yaml index 69e9557ec3..8bc2470832 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -26,7 +26,9 @@ header: # `header` section is configurations for source codes license header. 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. @@ -34,20 +36,20 @@ header: # `header` section is configurations for source codes license header. limitations under the License. # `pattern` is optional regexp if all the file headers are the same as `license` or the license of `spdx-id` and `copyright-owner`. pattern: | - Licensed to the Apache Software Foundation under one or more contributor - license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright - ownership. The Apache Software Foundation 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. + + 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. paths: # `paths` are the path list that will be checked (and fixed) by license-eye, default is ['**']. - '**' @@ -90,10 +92,11 @@ header: # `header` section is configurations for source codes license header. - '.repository/**' - '**/.flattened-pom.xml' - 'hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/id/SnowflakeIdGenerator.java' - - '**/optimize/HugeScriptTraversal.java' - - '**/type/Nameable.java' - - '**/define/Cardinality.java' - - '**/util/StringEncoding.java' + - 'hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/traversal/optimize/HugeScriptTraversal.java' + - 'hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/type/Nameable.java' + - 'hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/type/define/Cardinality.java' + - 'hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/util/StringEncoding.java' + - 'hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/ProcessBasicSuite.java' - 'hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/opencypher/CypherOpProcessor.java' - 'hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/opencypher/CypherPlugin.java' comment: on-failure # on what condition license-eye will comment on the pull request, `on-failure`, `always`, `never`. diff --git a/pom.xml b/pom.xml index 6917da79f6..e96b007df4 100644 --- a/pom.xml +++ b/pom.xml @@ -149,7 +149,7 @@ **/*.map **/*.properties dist/**/* - **/assembly/static/bin/hugegraph.service + **/bin/hugegraph.service **/swagger-ui/**/* scripts/dev/reviewers scripts/dev/reviewers @@ -207,6 +207,21 @@ + + + org.apache.rat + apache-rat-plugin + + + license-check + + check + + verify + + + +