From ce21c4acdf75c85d6f2d536b060a15eb99490668 Mon Sep 17 00:00:00 2001 From: daragu Date: Tue, 28 May 2024 10:25:38 +0800 Subject: [PATCH] [Infra] Introduce apache rat plugin to xtable project --- .github/workflows/mvn-license-check.yml | 46 ++++++++++++++ README.md | 18 ++++++ ci.md | 18 ++++++ demo/README.md | 18 ++++++ pom.xml | 60 +++++++++++++++++++ website/README.md | 18 ++++++ .../test/resources/schemas/basic_schema.avsc | 17 ++++++ .../xtable-hudi-support-extensions/README.md | 18 ++++++ 8 files changed, 213 insertions(+) create mode 100644 .github/workflows/mvn-license-check.yml diff --git a/.github/workflows/mvn-license-check.yml b/.github/workflows/mvn-license-check.yml new file mode 100644 index 000000000..c3bba2e34 --- /dev/null +++ b/.github/workflows/mvn-license-check.yml @@ -0,0 +1,46 @@ +# +# 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: License Check + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + push: + branches: + - "main" + + pull_request: + branches: + - "main" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + + - name: Apache License Check + run: mvn apache-rat:check -B diff --git a/README.md b/README.md index 308a7b6ce..3d73fba5f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ + + # Apache XTable™ (Incubating) [![Build Status](https://dev.azure.com/apache-xtable-ci-org/apache-xtable-ci/_apis/build/status%2Fapachextable-ci.xtable-mirror?branchName=main)](https://dev.azure.com/apache-xtable-ci-org/apache-xtable-ci/_build/latest?definitionId=2&branchName=main) diff --git a/ci.md b/ci.md index 6dfd677ab..03bf64317 100644 --- a/ci.md +++ b/ci.md @@ -1,3 +1,21 @@ + + # Guide on CI infrastructure ## Context diff --git a/demo/README.md b/demo/README.md index db0bfe8f6..eaada899d 100644 --- a/demo/README.md +++ b/demo/README.md @@ -1,3 +1,21 @@ + + # Running a Local Demo This demo was created for the 2023 Open Source Data Summit. It shows how XTable can be used with two existing datasets. diff --git a/pom.xml b/pom.xml index 97a8c7ebe..da6ed3432 100644 --- a/pom.xml +++ b/pom.xml @@ -57,6 +57,7 @@ 2.4.0 2.17.1 2.43.0 + 0.16.1 1.8 0.5.0 UTF-8 @@ -596,6 +597,65 @@ -Xmx1024m + + org.apache.rat + apache-rat-plugin + ${apache.rat.version} + + true + + + AL + Licensed under the Apache License, Version 2.0 (the + "License") + Licensed to the Apache Software Foundation (ASF) under + one + or more contributor license agreements; and to You under + the + Apache License, Version 2.0. + http://www.apache.org/licenses/LICENSE-2.0 + https://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0.html + https://www.apache.org/licenses/LICENSE-2.0.html + http://www.apache.org/licenses/LICENSE-2.0.txt + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + AL + Apache License Version 2.0 + + + + NOTICE + DISCLAIMER + **/.* + **/*.json + **/*.log + **/*.png + **/*.jpg + **/*.ipynb + **/demo/data/** + **/website/** + **/*NOTICE* + **/*LICENSE* + **/dependency-reduced-pom.xml + **/target/** + **/generated-sources/** + .github/** + **/*.iml + + + + + compile + + check + + + + com.diffplug.spotless spotless-maven-plugin diff --git a/website/README.md b/website/README.md index 0e45f99d1..0ec5132cc 100644 --- a/website/README.md +++ b/website/README.md @@ -1,3 +1,21 @@ + + # Apache XTable™ (Incubating) Website Source Code This repo hosts the source code of [Apache XTable™ (Incubating)](https://github.com/apache/incubator-xtable) diff --git a/xtable-core/src/test/resources/schemas/basic_schema.avsc b/xtable-core/src/test/resources/schemas/basic_schema.avsc index d37ae3ab3..613094c12 100644 --- a/xtable-core/src/test/resources/schemas/basic_schema.avsc +++ b/xtable-core/src/test/resources/schemas/basic_schema.avsc @@ -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. + */ { "type": "record", "name": "Sample", diff --git a/xtable-hudi-support/xtable-hudi-support-extensions/README.md b/xtable-hudi-support/xtable-hudi-support-extensions/README.md index aabd31c98..316ea198b 100644 --- a/xtable-hudi-support/xtable-hudi-support-extensions/README.md +++ b/xtable-hudi-support/xtable-hudi-support-extensions/README.md @@ -1,3 +1,21 @@ + + # Hudi Extensions ## Writer Extensions ### When should you use them?